followupTable {Publish}R Documentation

Summary tables for a given followup time point.

Description

Summarize baseline variables in groups defined by outcome at a given followup time point

Usage

followupTable(formula, data, followup.time, compare.groups, ...)

Arguments

formula

Formula A formula whose left hand side is a Hist object. In some special cases it can also be a Surv response object. The right hand side is as in utable.

data

A data.frame in which all the variables of formula can be interpreted.

followup.time

Time point at which to evaluate outcome status.

compare.groups

Method for comparing groups.

...

Passed to utable. All arguments of utable can be controlled in this way except for compare.groups which is set to "Cox". See details.

Details

If compare.groups!=FALSE, p-values are obtained from stopped Cox regression, i.e., all events are censored at follow-up time. A univariate Cox regression model is fitted to assess the effect of each variable on the right hand side of the formula on the event hazard and shown is the p-value of anova(fit), see anova.coxph.

Value

Summary table.

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

See Also

univariateTable

Examples

library(survival)
data(pbc)
pbc$edema <- factor(pbc$edema,levels=c("0","0.5","1"),labels=c("0","0.5","1"))
pbc$sex <- factor(pbc$sex,levels=c("m","f"),labels=c("m","f"))
followupTable(Hist(time,status)~age+edema+sex,data=pbc,followup.time=1000)


[Package Publish version 2023.01.17 Index]