R Dataset / Package wooldridge / happiness

Documentation

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


happiness

Description

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

Usage

data(happiness)

Format

A data.frame with 17137 rows and 33 variables:

  • year. gss year for this respondent

  • workstat. work force status

  • prestige. occupational prestige score

  • divorce. ever been divorced or separated

  • widowed. ever been widowed

  • educ. highest year of school completed

  • reg16. region of residence, age 16

  • babies. household members less than 6 yrs old

  • preteen. household members 6 thru 12 yrs old

  • teens. household members 13 thru 17 yrs old

  • income. total family income

  • region. region of interview

  • attend. how often r attends religious services

  • happy. general happiness

  • owngun. =1 if own gun

  • tvhours. hours per day watching tv

  • vhappy. =1 if 'very happy'

  • mothfath16. =1 if live with mother and father at 16

  • black. =1 if black

  • gwbush04. =1 if voted for G.W. Bush in 2004

  • female. =1 if female

  • blackfemale. black*female

  • gwbush00. =1 if voted for G.W. Bush in 2000

  • occattend. =1 if attend is 3, 4, or 5

  • regattend. =1 if attend is 6, 7, or 8

  • y94. =1 if year == 1994

  • y96.

  • y98.

  • y00.

  • y02.

  • y04.

  • y06. =1 if year == 2006

  • unem10. =1 if unemployed in last 10 years

Source

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

Examples

 str(happiness)
--

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-16082.csv 2.65 MB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0