Specify the distribution of a predictor variableSource:
Predictor variables can have any marginal distribution as long as a function is provided to sample from the distribution. Multivariate distributions are also supported: if the random generation function returns multiple columns, multiple random variables will be created, successively numbered.
Name (as character vector) of the function to generate draws from this predictor's distribution.
Additional arguments to pass to
distwhen generating draws.
predictor_dist object, to be used in
population() to specify a
The random generation function must take an argument named
n specifying the
number of draws. For univariate distributions, it should return a vector of
n; for multivariate distributions, it should return an array or
n rows and a column per variable.
Multivariate predictors are successively numbered. For instance, if predictor
X is specified with
then the population predictors will be named
X2, and will have