R Dataset / Package wooldridge / prison

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

prison

Description

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

Usage

data(prison)

Format

A data.frame with 714 rows and 45 variables:

  • state. alphabetical; DC = 9

  • year. 80 to 93

  • govelec. =1 if gubernatorial election

  • black. proportion black

  • metro. proportion in metro. areas

  • unem. proportion unemployed

  • criv. viol. crimes per 100,000

  • crip. prop. crimes per 100,000

  • lcriv. log(criv)

  • lcrip. log(crip)

  • gcriv. lcriv - lcriv_1

  • gcrip. lcrip - lcrip_1

  • y81. =1 if year == 81

  • y82.

  • y83.

  • y84.

  • y85.

  • y86.

  • y87.

  • y88.

  • y89.

  • y90.

  • y91.

  • y92.

  • y93.

  • ag0_14. prop. pop. 0 to 14 yrs

  • ag15_17. prop. pop. 15 to 17 yrs

  • ag18_24. prop. pop. 18 to 24 yrs

  • ag25_34. prop. pop. 25 to 34 yrs

  • incpc. per capita income, nominal

  • polpc. police per 100,000 residents

  • gincpc. log(incpc) - log(incpc_1)

  • gpolpc. lpolpc - lpolpc_1

  • cag0_14. change in ag0_14

  • cag15_17. change in ag15_17

  • cag18_24. change in ag18_24

  • cag25_34. change in ag25_34

  • cunem. change in unem

  • cblack. change in black

  • cmetro. change in metro

  • pris. prison pop. per 100,000

  • lpris. log(pris)

  • gpris. lpris - lpris[_n-1]

  • final1. =1 if fnl dec on litig, curr yr

  • final2. =1 if dec on litig, prev 2 yrs

Source

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

Examples

 str(prison)

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

Attachments: csv, json

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