monolix2simulx: Convert a Monolix Project into an executable for the...

View source: R/monolix2simulx.R

monolix2simulxR Documentation

Convert a Monolix Project into an executable for the simulator Simulx

Description

Convert a Monolix Project into an executable for the simulator Simulx

Usage

monolix2simulx(
  project,
  parameter = NULL,
  group = NULL,
  open = FALSE,
  r.data = TRUE,
  fim = NULL
)

Arguments

project

: the name of a Monolix project

parameter

: string $(NameOfTypeOfParameter), the type of specific parameters to use example: "mode", "mean"...

group

: a list with the number of subjects

open

: load the R script created if open=TRUE

r.data

: read the data if r.data=TRUE

fim

: Fisher information matrix

Value

creates a folder projectNameR containing files :

  • projectName.R : executable R code for the simulator,

  • treatment.txt : contains the treatment informations,

  • populationParameter.txt : contains the population parameters estimated from Monolix,

  • individualParameter.txt : contains the individual parameters (mode/mean) estimated from Monolix (if used for the simulation),

  • individualCovariate.txt : contains the individual covariates,

  • originalId.txt : contains the original id's when group is used with a different size than the original one,

  • outputi.txt : contains the output number i informations (time, id),

  • $(NameOfTypeOfParameter)s.txt : contains the specific parameter used.

Examples

## Not run: 
project.file <- 'monolixRuns/theophylline1_project.mlxtran'  #relative path
monolix2simulx(project=project.file,open=TRUE)
monolix2simulx(project=project.file,parameter=list("mean",c(a=0, b=0)),open=TRUE)

## End(Not run)

MarcLavielle/mlxR documentation built on May 28, 2023, 4:25 p.m.