R Dataset / Package wooldridge / affairs

Documentation

On this Picostat.com 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. 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.

Title Authored on Content type
R Dataset / Package psych / bfi March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - scotus_healthcare August 9, 2020 - 2:38 PM Dataset
R Dataset / Package psych / withinBetween March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Kids198 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Wages1 March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-75749.csv 25.85 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0