add_costs_by_tmpt | R Documentation |
add_costs_by_tmpt() is an Add function that updates an object by adding new values to new or empty fields. Specifically, this function implements an algorithm to add costs by time point. The function returns Updated dataset (a tibble).
add_costs_by_tmpt(
ds_tb,
round_var_nm_1L_chr,
round_lvls_chr = c("Baseline", "Follow-up"),
costs_mean_dbl,
costs_sd_dbl,
extra_cost_args_ls = list(costs_var_nm_1L_chr = "costs_dbl"),
fn = add_costs_from_gamma_dstr
)
ds_tb |
Dataset (a tibble) |
round_var_nm_1L_chr |
Round variable name (a character vector of length one) |
round_lvls_chr |
Round levels (a character vector), Default: c("Baseline", "Follow-up") |
costs_mean_dbl |
Costs mean (a double vector) |
costs_sd_dbl |
Costs standard deviation (a double vector) |
extra_cost_args_ls |
Extra cost arguments (a list), Default: list(costs_var_nm_1L_chr = "costs_dbl") |
fn |
Function (a function), Default: add_costs_from_gamma_dstr |
Updated dataset (a tibble)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.