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
|
data |
A data.frame in which all the variables of
|
followup.time |
Time point at which to evaluate outcome status. |
compare.groups |
Method for comparing groups. |
... |
Passed to |
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)