Learn R Programming

hopit (version 0.11.6)

healthsurvey: Artificially generated health survey data

Description

A dataset containing artificially generated survey data

Usage

healthsurvey

Arguments

Format

A data frame with 10000 rows and 11 variables:

ID

personal identification number.

health

reported health, 5 levels.

diabetes

has diabetes? "yes" or "no".

obese

is obese? "yes" or "no".

IADL_problems

has problems with Instrumental Activities of Daily Living? "yes" or "no".

hypertension

has hypertension? "yes" or "no".

high_cholesterol

has high cholesterol? "yes" or "no".

respiratory_problems

has respiratory problems? "yes" or "no".

heart_attack_or_stroke

had a stroke or a heart attack? "yes" or "no".

poor_mobility

has poor mobility? "yes" or "no".

very_poor_grip

cannot perform grip strength test? "yes" or "no".

depression

has depression? "yes" or "no".

other_diseases

has other diseases? "yes" or "no".

sex

sex/gender: "woman" or "man".

ageclass

categorized age: [50,60), [60,70), [70,80), [80,120).

education

two levels of education: primary or lower ("prim-") and secondary or higher ("sec+".

country

country: "X", "Y", or "Z".

csw

cross-sectional survey weights.

psu

primary statistical unit.

References

Examples

Run this code
# load *healthsurvey* dataset
data(healthsurvey)

# horizontal view of the dataset (omitting ID)
print(t(healthsurvey[1:6,-1]), quote=FALSE, na.print='NA', right=TRUE)

Run the code above in your browser using DataLab