chest.nz | R Documentation |
Presence/absence of chest pain in 10186 New Zealand adults.
data(chest.nz)
A data frame with 73 rows and the following 5 variables.
a numeric vector; age (years).
a numeric vector of counts; no pain on LHS or RHS.
a numeric vector of counts; no pain on LHS but pain on RHS.
a numeric vector of counts; no pain on RHS but pain on LHS.
a numeric vector of counts; pain on LHS and RHS of chest.
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.
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.
## Not run:
fit <- vgam(cbind(nolnor, nolr, lnor, lr) ~ s(age, c(4, 3)),
binom2.or(exchan = TRUE, zero = NULL), data = chest.nz)
coef(fit, matrix = TRUE)
## End(Not run)
## Not run: plot(fit, which.cf = 2, se = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.