Learn R Programming

Fahrmeir (version 2016.5.31)

happy: Reported Happiness

Description

Relationship between sex, years in school, and reported happiness.

Usage

data(happy)

Arguments

Format

A data frame with 24 observations on the following 4 variables.
Rep.happiness
an ordered factor with levels Not to happy < \ codePretty happy < Very happy
School
a factor with levels <12< code=""> >16 12 13-16
Sex
a factor with levels Females Males
n
number of persons in group

Source

Ludwig Fahrmeir, Gerhard Tutz (1994): Multivariate Statistical Modelling Based on Generalized Linear Models. Springer Series in Statistics. Springer Verlag. New-York Berlin Heidelberg

Examples

Run this code
str(happy)
table(happy)

Run the code above in your browser using DataLab