| fitLogrank | R Documentation |
Compute log rank test statistic on an endpoint.
Refer to this vignette for more information and examples.
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 columns:
armname of the treatment arm.
placeboname of the placebo arm.
pone-sided p-value for log-rank test (treated vs placebo).
infothe number of events of the endpoint in the subset.
zthe z statistic of the log rank test, with the sign of the log hazard ratio of treatment vs placebo.
If the statistic is undefined because its variance is zero (e.g., no
informative event comparison in the subset), a simulation placeholder
z = 0 with the corresponding p = 0.5 is returned with a
warning rather than an error, so that a few such replicates in a large
simulation do not require error handling in action functions. The
placeholder carries no evidence either way and is not a standardized
normal statistic.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.