View source: R/func_simulations.R
simulateDiscreteSaemix | R Documentation |
This function is used to simulate from discrete response models.
simulateDiscreteSaemix(
object,
nsim,
seed,
predictions = TRUE,
uncertainty = FALSE,
verbose = FALSE
)
object |
an saemixObject object returned by the |
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) |
predictions |
Whether the simulated parameters should be used to compute predictions. Defaults to TRUE. If FALSE, only individual parameters are simulated. |
uncertainty |
Uses uncertainty (currently not implemented). Defaults to FALSE |
verbose |
if TRUE, prints messages (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.