R Dataset / Package wooldridge / driving

On this R-data statistics page, you will find information about the driving data set which pertains to driving. The driving data set is found in the wooldridge R package. You can load the driving data set in R by issuing the following command at the console data("driving"). This will load the data into a variable called driving. If R says the driving data set is not found, you can try installing the package by issuing this command install.packages("wooldridge") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the driving R data set. The size of this file is about 328,786 bytes.

driving

Description

Data loads lazily. Type data(driving) into the console.

Usage

data(driving)

Format

A data.frame with 1200 rows and 56 variables:

  • year. 1980 through 2004

  • state. 48 continental states, alphabetical

  • sl55. speed limit == 55

  • sl65. speed limit == 65

  • sl70. speed limit == 70

  • sl75. speed limit == 75

  • slnone. no speed limit

  • seatbelt. =0 if none, =1 if primary, =2 if secondary

  • minage. minimum drinking age

  • zerotol. zero tolerance law

  • gdl. graduated drivers license law

  • bac10. blood alcohol limit .10

  • bac08. blood alcohol limit .08

  • perse. administrative license revocation (per se law)

  • totfat. total traffic fatalities

  • nghtfat. total nighttime fatalities

  • wkndfat. total weekend fatalities

  • totfatpvm. total fatalities per 100 million miles

  • nghtfatpvm. nighttime fatalities per 100 million miles

  • wkndfatpvm. weekend fatalities per 100 million miles

  • statepop. state population

  • totfatrte. total fatalities per 100,000 population

  • nghtfatrte. nighttime fatalities per 100,000 population

  • wkndfatrte. weekend accidents per 100,000 population

  • vehicmiles. vehicle miles traveled, billions

  • unem. unemployment rate, percent

  • perc14_24. percent population aged 14 through 24

  • sl70plus. sl70 + sl75 + slnone

  • sbprim. =1 if primary seatbelt law

  • sbsecon. =1 if secondary seatbelt law

  • d80. =1 if year == 1980

  • d81.

  • d82.

  • d83.

  • d84.

  • d85.

  • d86.

  • d87.

  • d88.

  • d89.

  • d90.

  • d91.

  • d92.

  • d93.

  • d94.

  • d95.

  • d96.

  • d97.

  • d98.

  • d99.

  • d00.

  • d01.

  • d02.

  • d03.

  • d04. =1 if year == 2004

  • vehicmilespc.

Source

https://www.cengage.com/cgi-wadsworth/course_products_wp.pl?fid=M20b&product_isbn_issn=9781111531041

Examples

 str(driving)

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-wooldridge-driving.html" width="100%" height="100%" style="border:0px"></iframe>