mmlcrdf {mmlcr}R Documentation

An artificial data frame for ‘mmlcr’ examples.

Description

The mmlcrdf data frame has 750 rows and 8 columns. It is a simulated data frame used for the mmlcr examples.

Usage

data(mmlcrdf)

Format

This data frame contains the following columns:
id
subject id number. Each subject has 5 observations.
age
subject's age
sex
subject's sex
cov1
a continuous covariate, fixed over time
tcov1
a time-varying, continuous covariate
resp1
a continuous response variable, left-censored at 0
resp2
a count variable
resp3
a factor response variable

Source

simulation

See Also

mmlcr

Examples

## Not run: data(mmlcrdf)
## Not run: 
mmlcrdf.mmlcr2 <- mmlcr(outer =  ~ sex + cov1 | id, 
        components = list(
                list(formula = resp1 ~ 1, class = "cnormonce", min = 0, max = 50),
                list(formula = resp2 ~ poly(age, 2) + tcov1, class = "poislong"),
                list(formula = resp3 ~ poly(age, 2), class = "multinomlong")
        ), data = mmlcrdf, n.groups = 2)
## End(Not run)

[Package mmlcr version 1.3.5 Index]