Learn R Programming

VGAM (version 1.1-8)

chest.nz: Chest Pain in NZ Adults Data

Description

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

Usage

data(chest.nz)

Arguments

Format

A data frame with 73 rows and the following 5 variables.

age

a numeric vector; age (years).

nolnor

a numeric vector of counts; no pain on LHS or RHS.

nolr

a numeric vector of counts; no pain on LHS but pain on RHS.

lnor

a numeric vector of counts; no pain on RHS but pain on LHS.

lr

a numeric vector of counts; pain on LHS and RHS of chest.

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
if (FALSE) {
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)
}
if (FALSE)  plot(fit, which.cf = 2, se = TRUE) 

Run the code above in your browser using DataLab