R Dataset / Package wooldridge / crime2


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



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




A data.frame with 92 rows and 34 variables:

  • pop. population

  • crimes. total number index crimes

  • unem. unemployment rate

  • officers. number police officers

  • pcinc. per capita income

  • west. =1 if city in west

  • nrtheast. =1 if city in NE

  • south. =1 if city in south

  • year. 82 or 87

  • area. land area, square miles

  • d87. =1 if year = 87

  • popden. people per sq mile

  • crmrte. crimes per 1000 people

  • offarea. officers per sq mile

  • lawexpc. law enforce. expend. pc, $

  • polpc. police per 1000 people

  • lpop. log(pop)

  • loffic. log(officers)

  • lpcinc. log(pcinc)

  • llawexpc. log(lawexpc)

  • lpopden. log(popden)

  • lcrimes. log(crimes)

  • larea. log(area)

  • lcrmrte. log(crmrte)

  • clcrimes. change in lcrimes

  • clpop. change in lpop

  • clcrmrte. change in lcrmrte

  • lpolpc. log(polpc)

  • clpolpc. change in lpolpc

  • cllawexp. change in llawexp

  • cunem. change in unem

  • clpopden. change in lpopden

  • lcrmrt_1. lcrmrte lagged

  • ccrmrte. change in crmrte





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
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-wooldridge-crime2.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-46511.csv 35.58 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.