Learn R Programming

VGAM (version 0.8-3)

chestnz: Chest Pain in NZ Adults Data

Description

Presence/absence of chest pain in 10186 New Zealand adults.

Usage

data(chestnz)

Arguments

source

MacMahon, S., Norton, R., Jackson, R., Mackie, M. J., Cheng, A., Vander Hoorn, S., Milne, A., McCulloch, A. (1995) Fletcher Challenge-University of Auckland Heart & Health Study: design and baseline findings. New Zealand Medical Journal, 108, 499--502.

Details

Each adult was asked their age and whether they experienced any pain or discomfort in their chest over the last six months. If yes, they indicated whether it was on their LHS and/or RHS of their chest.

Examples

Run this code
fit = vgam(cbind(nolnor, nolr,lnor,lr) ~ s(age, c(4,3)), 
           binom2.or(exchan=TRUE, zero=NULL), data = chestnz)
coef(fit, matrix=TRUE)
plot(fit, which.cf=2, se=TRUE)

Run the code above in your browser using DataLab