View source: R/simulate_data.R
adjust_trajectories_single | R Documentation |
Adjust trajectory of a subject's outcome due to the intercurrent event (ICE)
adjust_trajectories_single(
distr_pars_group,
outcome,
strategy_fun,
distr_pars_ref = NULL
)
distr_pars_group |
Named list containing the simulation parameters of the multivariate normal distribution assumed for the given treatment group. It contains the following elements:
|
outcome |
Numeric variable that specifies the longitudinal outcome. |
strategy_fun |
Function implementing trajectories after the intercurrent event (ICE).
Must be one of |
distr_pars_ref |
Optional. Named list containing the simulation parameters of the reference arm. It contains the following elements:
|
outcome
should be specified such that all-and-only the post-ICE observations
(i.e. the
observations to be adjusted) are set to NA
.
A numeric vector containing the adjusted trajectory for a single subject.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.