R Dataset / Package wooldridge / crime4

Documentation

On this R-data statistics page, you will find information about the crime4 data set which pertains to crime4. The crime4 data set is found in the wooldridge R package. You can load the crime4 data set in R by issuing the following command at the console data("crime4"). This will load the data into a variable called crime4. If R says the crime4 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. 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 crime4 R data set. The size of this file is about 536,646 bytes.


crime4

Description

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

Usage

data(crime4)

Format

A data.frame with 630 rows and 59 variables:

  • county. county identifier

  • year. 81 to 87

  • crmrte. crimes committed per person

  • prbarr. 'probability' of arrest

  • prbconv. 'probability' of conviction

  • prbpris. 'probability' of prison sentenc

  • avgsen. avg. sentence, days

  • polpc. police per capita

  • density. people per sq. mile

  • taxpc. tax revenue per capita

  • west. =1 if in western N.C.

  • central. =1 if in central N.C.

  • urban. =1 if in SMSA

  • pctmin80. perc. minority, 1980

  • wcon. weekly wage, construction

  • wtuc. wkly wge, trns, util, commun

  • wtrd. wkly wge, whlesle, retail trade

  • wfir. wkly wge, fin, ins, real est

  • wser. wkly wge, service industry

  • wmfg. wkly wge, manufacturing

  • wfed. wkly wge, fed employees

  • wsta. wkly wge, state employees

  • wloc. wkly wge, local gov emps

  • mix. offense mix: face-to-face/other

  • pctymle. percent young male

  • d82. =1 if year == 82

  • d83. =1 if year == 83

  • d84. =1 if year == 84

  • d85. =1 if year == 85

  • d86. =1 if year == 86

  • d87. =1 if year == 87

  • lcrmrte. log(crmrte)

  • lprbarr. log(prbarr)

  • lprbconv. log(prbconv)

  • lprbpris. log(prbpris)

  • lavgsen. log(avgsen)

  • lpolpc. log(polpc)

  • ldensity. log(density)

  • ltaxpc. log(taxpc)

  • lwcon. log(wcon)

  • lwtuc. log(wtuc)

  • lwtrd. log(wtrd)

  • lwfir. log(wfir)

  • lwser. log(wser)

  • lwmfg. log(wmfg)

  • lwfed. log(wfed)

  • lwsta. log(wsta)

  • lwloc. log(wloc)

  • lmix. log(mix)

  • lpctymle. log(pctymle)

  • lpctmin. log(pctmin)

  • clcrmrte. lcrmrte - lcrmrte[_n-1]

  • clprbarr. lprbarr - lprbarr[_n-1]

  • clprbcon. lprbconv - lprbconv[_n-1]

  • clprbpri. lprbpri - lprbpri[t-1]

  • clavgsen. lavgsen - lavgsen[t-1]

  • clpolpc. lpolpc - lpolpc[t-1]

  • cltaxpc. ltaxpc - ltaxpc[t-1]

  • clmix. lmix - lmix[t-1]

Source

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

Examples

 str(crime4)
--

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

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
Embed
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-wooldridge-crime4.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-57324.csv 524.07 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.