fitLogrank | R Documentation |
Compute log rank test statistic on an endpoint.
fitLogrank(formula, placebo, data, alternative, ..., tidy = TRUE)
formula |
An object of class |
placebo |
character. String of placebo in |
data |
data frame. Usually it is a locked data. |
alternative |
a character string specifying the alternative hypothesis,
must be one of |
... |
subset condition that is compatible with |
tidy |
logical. |
a data frame with three columns:
arm
name of the treatment arm.
placebo
name of the placebo arm.
p
one-sided p-value for log-rank test (treated vs placebo).
info
the number of events of the endpoint in the subset.
z
the z statistics of log hazard ratios.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.