-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_costs_by_tmpt.Rd
38 lines (32 loc) · 1.21 KB
/
add_costs_by_tmpt.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fn_add.R
\name{add_costs_by_tmpt}
\alias{add_costs_by_tmpt}
\title{Add costs by time point}
\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{
\item{ds_tb}{Dataset (a tibble)}
\item{round_var_nm_1L_chr}{Round variable name (a character vector of length one)}
\item{round_lvls_chr}{Round levels (a character vector), Default: c("Baseline", "Follow-up")}
\item{costs_mean_dbl}{Costs mean (a double vector)}
\item{costs_sd_dbl}{Costs standard deviation (a double vector)}
\item{extra_cost_args_ls}{Extra cost arguments (a list), Default: list(costs_var_nm_1L_chr = "costs_dbl")}
\item{fn}{Function (a function), Default: add_costs_from_gamma_dstr}
}
\value{
Updated dataset (a tibble)
}
\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).
}
\keyword{internal}