simulx{mlxR}

Description

Compute predictions and sample data from Mlxtran models.

Usage

Arguments

model
a Mlxtran model used for the simulation.
parameter
a vector of parameters with their names and values
output
a list, or a list of lists, with fields
treatment
a list with fields
regressor
a list, or a list of lists, with fields
varlevel
a list, or a dataframe, with fields
group
a list, or a list of lists, with fields
data
a list (output of simulx when settings$data.in==TRUE)
project
the name of a Monolix project
nrep
number of replicates
npop
number of population parameters to draw randomly
fim
a string with the Fisher Information Matrix to be used
result.folder
the name of the folder where the outputs of simulx should be stored
result.file
the name of the single file where the outputs of simulx should be saved
stat.f
a R function for computing some summary (mean, quantiles, survival,…) of the simulated data. Default = “statmlx”.
addlines
a list with fields
settings
a list of optional settings

Details

simulx takes advantage of the modularity of hierarchical models for simulating different components of a model: models for population parameters, individual covariates, individual parameters and longitudinal data.

Furthermore, simulx allows to draw different types of longitudinal data, including continuous, count, categorical, and time-to-event data.

The models are encoded using the model coding language Mlxtran. These models are automatically converted into C++ codes, compiled on the fly and linked to R using the Rcpp package. That allows one to implement very easily complex models and to take advantage of the numerical sovers used by the C++ MlxLibrary.

Value

A list of data frames. Each data frame is an output of simulx.