calculate_weights: Function for calculating weights for logrank test

Description Usage Arguments Value

View source: R/calculate_weights.R

Description

Calculates weights for treatment switching logrank test

Usage

1
2
calculate_weights(risk_table, method = "logrank", hr_fun = NULL, rho = 0,
  gamma = 0)

Arguments

risk_table

Risk table from the function

method

Which method for calculating the weights logrank Standard logrank test (w=1 for all) theta w = -log(hr(t)) hr_weight Weight from article fh Flemming-Harrington weights

hr_fun

Hazard ratio function for method theta and hr_weight

rho

Variable for method fh

gamma

Varaiable for method fh

Value

Risk table updated with weights


borealexander/tslrt documentation built on March 26, 2020, 4:11 p.m.