Usage
# S3 method for pyears
summary(object, header = TRUE, call = header, n = TRUE,
event = TRUE, pyears = TRUE, expected = TRUE, rate = FALSE, rr =expected,
ci.r = FALSE, ci.rr = FALSE, totals=FALSE, legend = TRUE, vline = FALSE,
vertical= TRUE, nastring=".", conf.level = 0.95,
scale = 1, ...)
Arguments
header
print out a header giving the total number of
observations, events, person-years, and total time (if any)
omitted from the table
call
print out a copy of the call
n, event, pyears, expected
logical arguments: should these
elements be printed in the table?
rate, ci.r
logical arguments: should the incidence rate and/or
its confidence interval be given in the table?
rr, ci.rr
logical arguments: should the hazard ratio and/or
its confidence interval be given in the table?
totals
should row and column totals be added?
legend
should a legend be included in the printout?
vline
should vertical lines be included in the printed tables?
vertical
when there is only a single predictor, should the
table be printed with the predictor on the left (vertical=TRUE) or
across the top (vertical=FALSE)?
nastring
what to use for missing values in the table. Some of
these are structural, e.g., risk ratios for a cell with no follow-up time.
conf.level
confidence level for any confidence intervals
scale
a scaling factor for printed rates
…
optional arguments which will be passed to the
format
function; common choices would be digits=2 or nsmall=1.