View source: R/loss_function.R
loss_function | R Documentation |
Loss function for the optimization problem
loss_function( tot_dur, accr_time = 24, h_c = 0.05/12, HR = 0.775, given_N = 10157 )
tot_dur |
- scalar. Total study duration (accrual time + follow-up time) in months. |
accr_time |
- scalar. Accrual time in months. |
h_c |
- scalar. Value of hazard rate in control arm. |
HR |
- scalar. Hazard ratio. |
given_N |
- integer. Fixed sample size. |
To avoid singular values a constraint "total time greater equal than accrual time" must be enforced.
numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.