Description Usage Arguments Details Author(s) References Examples
View source: R/test_logrank_hr_1binary.R
Calculates the power, number of deaths, proportion to be randomized, significance, or hazard ratio for a log-rank test of a Kaplan-Meier curve with a single binary covariate.
1 2 | test_logrank_hr_1binary(hr = NULL, deaths = NULL, p = 0.5, alpha = 0.05,
power = 0.8)
|
hr |
Hazard ratio |
deaths |
Number of deaths |
p |
proportion of subjects to be randomized to the first group. The format of this argument will eventually change. |
alpha |
significance level for the test |
power |
Power of the test |
This function is currently in development and will undergo serious changes. Among the changes: 1) p will be changed to a 'weights' style argument; 2) follow up time and recruitment interval will be incorporated; 3) event rates may be incorporated so as to calculate the sample size instead of the number of deaths.
Benjamin Nutter
Schoenfeld DA. Sample-size formula for the proportional-hazards regression model. Biometrics 1983;39:499-503
1 2 | #* Example from Schoenfeld (doesn't incorporate recruitment and follow-up periods)
test_logrank_hr_1binary(hr=1.5, p=.25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.