survfit.transph: Compute survival and cumulative hazard curves from a transph...

Description Usage Arguments Value Author(s)

Description

Compute survival and cumulative hazard curves from a transph model

Usage

1
survfit.transph(creg, newdata, level = 0.95, transform = "log-log", ...)

Arguments

newdata

A data frame or named vector with the same variable names as the transph formula. It will be passed to survfit.coxph.

level

The level for pointwise two-sided confidence limits.

transform

The transformation of the survival function used to calculate confidence limits. The "log-log" option uses the log cumulative hazard, and the "log" option uses the cumulative hazard directly.

...

Further arguments to be passed to survfit.coxph, such as type, vartype, and start.time. Do not include se.fit, which is TRUE (the default), or conf.type, which is set to none.

treg

A transph object.

Value

A survfit.object with its std.err, upper, and lower components altered as needed to account for uncertainty in who-infected-whom. The conf.int and conf.type components are altered to match the level and transform arguments, respectively. This object can be passed to the following methods from the survival package: plot.survfit, summary.survfit, and print.survfit.

Author(s)

Eben Kenah kenah.1@osu.edu


ekenah/transtat documentation built on Nov. 11, 2021, 3:12 p.m.