R/linear_tolerance_weight.R
linear_follow_up_weight.Rd
Weights for tolerance and toxicity events using linear function of time
linear_follow_up_weight(
now_time,
recruited_time,
tox,
max_time,
tox_has_weight_1 = TRUE
)
numerical vector of weights
linear_follow_up_weight(
now_time = 10,
recruited_time = 4:7,
tox = c(0, 0, 0, 1),
max_time = 6,
tox_has_weight_1 = TRUE
)
#> [1] 1.0000000 0.8333333 0.6666667 1.0000000
linear_follow_up_weight(
now_time = 10,
recruited_time = 4:7,
tox = c(0, 0, 0, 1),
max_time = 6,
tox_has_weight_1 = FALSE
)
#> [1] 1.0000000 0.8333333 0.6666667 0.5000000