Generates a synthetic cohort using a normal copula based on aggregate-level data.
simulate_ALD_pseudo_pop(
formula,
ipd = NULL,
ald = NULL,
trt_var,
rho = NA,
N = 1000,
marginal_distns = NA,
marginal_params = NA,
seed = NULL,
verbose = FALSE
)A data frame representing the synthetic pseudo-population.
Linear regression formula object. Prognostic factors (PF) are main effects and effect modifiers (EM) are
interactions with the treatment variable, e.g., y ~ X1 + trt + trt:X2. For covariates as both PF and EM use * syntax.
Individual-level patient data. Dataframe with one row per patient with outcome, treatment and covariate columns.
Aggregate-level data. Long format summary statistics for each covariate and treatment outcomes. We assume a common distribution for each treatment arm.
A named square matrix of covariate correlations or single value; default NA takes from IPD.
Sample size for the synthetic cohort. Default is 1000.
Marginal distributions names; vector default NA.
Available distributions are given in stats::Distributions. See copula::Mvdc() for details
Marginal distributions parameters;
named list of lists, default NA. See copula::Mvdc() for details
Random seed
Default FALSE