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 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 crime2 R data set. The size of this file is about 36,436 bytes.

crime2

Description

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

Usage

data(crime2)

Format

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

Source

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

Examples

 str(crime2)

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

Attachments: csv, json

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