Skip to contents

A subset of the NHANES 1999-2010 data, filtered for adults (>=18) with diabetes and plausible caloric intake (500-3500 kcal). This data is prepared for survival analysis on the relationship between caffeine consumption and mortality.

Usage

nhanes_mortality

Format

A data frame with 3780 rows and 23 variables:

id

Respondent sequence/ID number

survey.weight

Full sample 2-year weights

psu

Masked pseudo-PSU

strata

Masked pseudo-stratum

caff

Caffeine consumption (Factor: "No consumption", "<100 mg/day", etc.)

stime

Follow-up time in months

status

Mortality status (0=Censored, 1=Deceased)

sex

Sex (Factor: "Male", "Female")

age

Age in years at interview

race

Race/ethnicity (Factor)

smoking

Smoking status (Factor)

bmi.cat

BMI category (Factor)

education

Education level (Factor)

carbohyd

Carbohydrate in gm

alcohol

Alcohol consumption (Factor)

htn

Hypertension status (Factor)

macrovascular

Macrovascular complications (Character: "No", "Yes")

insulin

Insulin use (Factor: "No", "Yes")

survey.cycle

Survey cycle (Character: "1999-00", etc.)

physical.activity

Physical activity level (Factor)

diabetes

Diabetes status (Factor, all "Yes")

cal.total

Total calories in kcal

survey_weight

Adjusted 6-cycle survey weight (survey.weight / 6)

Source

Data originally from NHANES and processed according to the "Survival analysis: NHANES" tutorial.