aee {acc}R Documentation

Creates an aee object

Description

Creates an aee object for semiparametric regression with augmented estimating equation.

Usage

aee(ID, time, minutes)

Arguments

ID

Individual identifier

time

Observation time

minutes

Minutes of physical activity

Value

psDF

A data frame, part of original input data frame with variable "ID", "time" and "count"

timeGrid

Ordered distinct observation times in the set of all observation times

panelMatrix

a matrix representation of panel count data, one row per subject, one column per time point in "timeGrid"

Author(s)

Jaejoon Song <jjsong2@mdanderson.org>

References

Wang, X. and Yan, J. (2011). Fitting semiparametric regressions for panel count survival data with an R package spef. Computer Methods and Programs in Biomedicine, 104, 278-285.

Wang, X., Ma, S., and Yan, J. (2013). Augmented estimating equations for semiparametric panel count regression with informative observation times and censoring time. Statistica Sinica, 23, 359-381.

Examples

## Not run: 
# We illustrate the use of function aeexfit
# with the sample data from the National Health and Nutrition Examination Survey (NHANES) 
# to examine the association between the cardiorespiratory function (i.e., VO2max) 
# and daily minutes of moderate to vigorous physical activity (MVPA).

data(NHANES)
formula <- aee(ID, Day, mvpaMinutes) ~ VO2max
# Standard errors are obtained using sandwich estimation
fitted <- aeexfit(formula = formula, data = NHANES, se = "Sandwich")
summary(fitted)

## End(Not run)

[Package acc version 1.3.3 Index]