loss_function: Loss function for the optimization problem

View source: R/loss_function.R

loss_functionR Documentation

Loss function for the optimization problem

Description

Loss function for the optimization problem

Usage

loss_function(
  tot_dur,
  accr_time = 24,
  h_c = 0.05/12,
  HR = 0.775,
  given_N = 10157
)

Arguments

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.

Details

To avoid singular values a constraint "total time greater equal than accrual time" must be enforced.

Value

numeric


bonorico/PSI_Wed_Challenge_February documentation built on March 30, 2022, 4 p.m.