Description Usage Arguments Value
View source: R/calculate_weights.R
Calculates weights for treatment switching logrank test
1 2 | calculate_weights(risk_table, method = "logrank", hr_fun = NULL, rho = 0,
gamma = 0)
|
risk_table |
Risk table from the function |
method |
Which method for calculating the weights
|
hr_fun |
Hazard ratio function for method |
rho |
Variable for method |
gamma |
Varaiable for method |
Risk table updated with weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.