R Dataset / Package wooldridge / affairs

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

affairs

Description

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

Usage

data(affairs)

Format

A data.frame with 601 rows and 19 variables:

  • id. identifier

  • male. =1 if male

  • age. in years

  • yrsmarr. years married

  • kids. =1 if have kids

  • relig. 5 = very relig., 4 = somewhat, 3 = slightly, 2 = not at all, 1 = anti

  • educ. years schooling

  • occup. occupation, reverse Hollingshead scale

  • ratemarr. 5 = vry hap marr, 4 = hap than avg, 3 = avg, 2 = smewht unhap, 1 = vry unhap

  • naffairs. number of affairs within last year

  • affair. =1 if had at least one affair

  • vryhap. ratemarr == 5

  • hapavg. ratemarr == 4

  • avgmarr. ratemarr == 3

  • unhap. ratemarr == 2

  • vryrel. relig == 5

  • smerel. relig == 4

  • slghtrel. relig == 3

  • notrel. relig == 2

Source

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

Examples

 str(affairs)

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

Attachments: csv, json

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