R Dataset / Package wooldridge / happiness

How To Create a Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Stacked Barplot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Pie Chart

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Compute the Mean

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How To Create a Plot

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

How to Compute the Median

Webform
The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Boxplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Correlation Coefficient

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Cumulative Frequency Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Dotplot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Hollow Histogram

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Numerical Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Pie Chart

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Plot

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Regression

Stem and Leaf Plots

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.

Visual Summaries

The Drupal File ID of the selected dataset. The user may load another using the search bar on the operation's page.
Embed
<iframe src="https://embed.picostat.com/r-dataset-package-wooldridge-happiness.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-16082.csv 2.65 MB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0
Dataset Help

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.

Documentation

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.