Simulates the covariate values admixr2 itself would use for n subjects,
from the same specification a study carries in cov_dist. It is the way to
see what a specification actually describes — to check that a reported mean
and standard deviation were transcribed correctly, that a correlation points
the way round you meant, or that a copula sampler returns what you think it
does — before a fit depends on it.
Arguments
- cov_dist
A covariate specification, as given to a study. Each element names a covariate and describes its distribution, either as
meanandsdon the covariate's own scale — NORMAL by default, so passdist = "lnorm"for the positive margin an allometric term needs (onlycovDist()defaults to lognormal) — or as aquantilefunction, or asvalues(with optionalprobs) for a discrete covariate. Acorentry — a scalar for two covariates, or a correlation matrix — links them through a Gaussian copula. Ajointfunction takes the matrix of uniforms and returns one column per covariate, which is how an arbitrary copula, an R-vine included, is supplied.- n
Number of subjects to draw.
- n_eta
Number of random effects in the model the specification belongs to. The draws are deterministic and come from Sobol dimensions after the random effects', so passing the model's own
n_etareproduces exactly the values a fit would use. The default of0is right for inspecting a specification on its own.
