add_costs_by_tmpt: Add costs by time point

add_costs_by_tmptR Documentation

Add costs by time point

Description

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).

Usage

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
)

Arguments

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

Value

Updated dataset (a tibble)


ready4-dev/map2aqol documentation built on April 25, 2024, 12:17 p.m.