Survival-class | R Documentation |
Implements the normal approximation of the log-rank test statistic.
Survival(event_rate, two_armed = TRUE)
## S4 method for signature 'Survival'
quantile(x, probs, n, theta, ...)
## S4 method for signature 'Survival,numeric'
simulate(object, nsim, n, theta, seed = NULL, ...)
event_rate |
probability that a subject will eventually have an event |
two_armed |
logical indicating if a two-armed trial is regarded |
x |
outcome |
probs |
vector of probabilities |
n |
sample size |
theta |
distribution parameter |
... |
further optional arguments |
object |
object of class |
nsim |
number of simulation runs |
seed |
random seed |
event_rate
cf. parameter 'event_rate'
see probability_density_function
and
cumulative_distribution_function
to evaluate the pdf
and the cdf, respectively.
datadist <- Survival(event_rate=0.6, two_armed=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.