View source: R/followupTable.R
followupTable  R Documentation 
Summarize baseline variables in groups defined by outcome at a given followup time point
followupTable(formula, data, followup.time, compare.groups, ...)
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 
If compare.groups!=FALSE
, pvalues are obtained from stopped Cox regression, i.e., all events are censored at followup 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 pvalue of anova(fit)
, see anova.coxph
.
Summary table.
Thomas A. Gerds <tag@biostat.ku.dk>
univariateTable
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.