Learn R Programming

blm (version 2012.2.4)

aarp: Nested case-control data set of bladder cancer in the NIH-AARP Diet and Health Study

Description

The aarp data set is a nested case-control study of bladder cancer outcomes in the NIH-AARP Diet and Health Study. The data set is intended for demonstration purposes only.

Usage

aarp

Arguments

format

ll{ bladder70: indicator of bladder cancer by age 70 years female: indicator of female gender smoke_status: factor of smoking status (four categories) w: inverse of sampling fraction redmeat: total daily redmeat consumption (grams/day) fiber.centered: total daily fiber consumption (grams), centered on sample median educ: factor of education status (six categories) }

source

National Cancer Institute. National Institutes of Health AARP Diet and Health Study. http://dietandhealth.cancer.gov/. Accessed: 12/10/2012

Examples

Run this code
data(aarp)

# ABSOLUTE RISK OF BLADDER CANCER BY 70 YEARS
# FOR DIFFERENT GENDER AND RISK GROUP

fit <- blm(bladder70~female * smoke_status, 
			      data = aarp, 
			      weight=aarp$w)

# INTERCEPT IS BASELINE RISK
# ALL OTHER COEFFICIENTS ARE RISK DIFFERENCES FROM BASELINE

summary(fit)

Run the code above in your browser using DataLab