| Surv | R Documentation |
Wrapper for survival::Surv.
Surv(
time,
time2,
event,
type = c("right", "left", "interval", "counting", "interval2", "mstate"),
origin = 0
)
time |
see survival::Surv |
time2 |
see survival::Surv |
event |
see survival::Surv |
type |
see survival::Surv |
origin |
see survival::Surv |
See [survival::Surv].
popEpi::Surv is a wrapper for survival::Surv.
Therefore you don't need to to do library("survival") when using Surv
with e.g.
[survtab]. Remember that if you do library("survival") after
library("popEpi"), the Surv from survival is used instead of
from popEpi (R throws a warning about this) when an expression
such as Surv(my_times, my_events) is evaluated. You can avoid such
conflicts by writing e.g. popEpi::Surv(my_times, my_events) instead.
However, popEpi::Surv is designed in such a way that this should not
become a problem and you should be able to use the two interchangeably.
Other main functions:
rate(),
relpois(),
relpois_ag(),
sir(),
sirspline(),
survmean(),
survtab(),
survtab_ag()
Other survtab functions:
lines.survtab(),
plot.survtab(),
print.survtab(),
summary.survtab(),
survtab(),
survtab_ag()
Other survmean functions:
lines.survmean(),
plot.survmean(),
survmean()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.