View source: R/func_simulations.R
simulateDiscreteSaemix | R Documentation |
This function is used to simulate from discrete response models.
simulateDiscreteSaemix( object, simulate.function, nsim, seed, uncertainty = FALSE )
object |
an saemixObject object returned by the |
simulate.function |
a function with the same structure as the model functions (arguments (psi, id, xidep)) which returns simulated responses when given a set of individual parameters (psi) and the corresponding predictors (xidep) |
nsim |
Number of simulations to perform. Defaults to the nb.simpred element in options |
seed |
if non-null, seed used to initiate the random number generator (defaults to NULL) |
uncertainty |
Uses uncertainty (currently not implemented). Defaults to FALSE |
To call this function, the user needs to define a simulate.function matching the model function in the object. The function will then be used to simulate data under the empirical design, using the model and estimated parameters from a fit.
This function calls simulate.SaemixObject with the prediction=FALSE option to simulate individual parameters, then the simulate.function to obtain corresponding predictions.
Emmanuelle Comets emmanuelle.comets@inserm.fr
SaemixObject
,saemix
,
simulate.SaemixObject
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.