powered by
Implements the normal approximation of the log-rank test statistic.
Survival(event_rate, two_armed = TRUE)# S4 method for Survival quantile(x, probs, n, theta, ...)# S4 method for Survival,numeric simulate(object, nsim, n, theta, seed = NULL, ...)
# S4 method for Survival quantile(x, probs, n, theta, ...)
# S4 method for Survival,numeric simulate(object, nsim, n, theta, seed = NULL, ...)
probability that a subject will eventually have an event
logical indicating if a two-armed trial is regarded
outcome
vector of probabilities
sample size
distribution parameter
further optional arguments
object of class Survival
Survival
number of simulation runs
random seed
event_rate
cf. parameter 'event_rate'
see probability_density_function and cumulative_distribution_function to evaluate the pdf and the cdf, respectively.
probability_density_function
cumulative_distribution_function
datadist <- Survival(event_rate=0.6, two_armed=TRUE)
Run the code above in your browser using DataLab