In a model using simulation, we need to prepare a set of random draws to
use when simulating/approximating the distributions/integrals. The function
is a convenient wrapper around the function make_draws
.
prepare_draws(n_id, n_ct, n_draws, type, rpar, seed)
An integer giving the nubmer of respondents
An integer giving the number of choice situations
An integer giving the number of draws per individual
A character string giving the type of draws to use
A named list giving the type of distribution
An integer giving the seed to change the scrambling of the sobol sequence
A list of matrixes matching 'rpar' where each matrix has the dimensions n_id*n_ct x n_draws
Depending on the model options, the function will transform the supplied uniform draws to either standard uniform, standard normal or standard triangular. It is up to the user to specify the correct distributions in the log-likelihood function.