R Dataset / Package wooldridge / traffic2

Submitted by pmagunia on March 9, 2018 - 1:06 PM
Dataset License
GNU General Public License v2.0
Attachment Size
dataset-63675.csv 37.9 KB
Documentation

traffic2

Description

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

Usage

data(traffic2)

Format

A data.frame with 108 rows and 48 variables:

  • year. 1981 to 1989

  • totacc. statewide total accidents

  • fatacc. statewide fatal accidents

  • injacc. statewide injury accidents

  • pdoacc. property damage only accidents

  • ntotacc. noninterstate total acc.

  • nfatacc. noninterstate fatal acc.

  • ninjacc. noninterstate injur acc.

  • npdoacc. noninterstate property acc.

  • rtotacc. tot. acc. on rural 65 mph roads

  • rfatacc. fat. acc. on rural 65 mph roads

  • rinjacc. inj. acc. on rural 65 mph roads

  • rpdoacc. prp. acc. on rural 65 mph roads

  • ushigh. acc. on U.S. highways

  • cntyrds. acc. on county roads

  • strtes. acc. on state routes

  • t. time trend

  • tsq. t^2

  • unem. state unemployment rate

  • spdlaw. =1 after 65 mph in effect

  • beltlaw. =1 after seatbelt law

  • wkends. # weekends in month

  • feb. =1 if month is Feb.

  • mar.

  • apr.

  • may.

  • jun.

  • jul.

  • aug.

  • sep.

  • oct.

  • nov.

  • dec.

  • ltotacc. log(totacc)

  • lfatacc. log(fatacc)

  • prcfat. 100*(fatacc/totacc)

  • prcrfat. 100*(rfatacc/rtotacc)

  • lrtotacc. log(rtotacc)

  • lrfatacc. log(rfatacc)

  • lntotacc. log(ntotacc)

  • lnfatacc. log(nfatacc)

  • prcnfat. 100*(nfatacc/ntotacc)

  • lushigh. log(ushigh)

  • lcntyrds. log(cntyrds)

  • lstrtes. log(strtes)

  • spdt. spdlaw*t

  • beltt. beltlaw*t

  • prcfat_1. prcfat[_n-1]

Source

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

Examples

 str(traffic2)
--

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

Documentation License
GNU General Public License v2.0

From Around the Site...

Title Authored on Content type
R Dataset / Package car / Chirot March 9, 2018 - 1:06 PM Dataset
R Dataset / Package MASS / synth.tr March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / FruitFlies March 9, 2018 - 1:06 PM Dataset
R Dataset / Package DAAG / kiwishade March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / YouthRisk2009 March 9, 2018 - 1:06 PM Dataset