Skip to main content
Skip table of contents

getSimulationResults

Get the results of the simulation.
The output is a list of four elements: res, individualParameters, populationParameters and doses, and optionally id_mapping for external id tables.

  • res corresponds to the list of the output(s) of the simulation. It includes a data frame for each output with the columns id, original_id (if an external element with id column is used in the simulation), time, outputName, and group (corresponding to the group name if there are several groups).

  • individualParameters corresponds to a list of data frames, one for each simulation group, with the individual parameters sampled in the group.

  • populationParameters corresponds to a list of data frames, one for each simulation group, with the population parameters sampled in the group (can be several sets only in case of replicates).

  • doses corresponds to a list of data frames, one for each simulation group, with the dose amounts administered to each individual in the group.

  • id_mapping maps the original ids used in the external tables to the simulated ids.


Usage

R
getSimulationResults(id = NULL, rep = NULL)

Arguments

id

[optional](character) If provided, results are retrieved only for this id.

rep

[optional](integer) If provided, results are retrieved only for this replicate.

See also

Examples

R
 # retrieve complete results
 initializeLixoftConnectors("simulx")
 project_file <- file.path(getDemoPath(), "1.overview", "importFromMonolix_resimulateProject.smlx")
 loadProject(project_file)
 runSimulation()
 if (FALSE) {
   getSimulationResults()
   getSimulationResults()$individualParameters
   getSimulationResults()$doses
 }

 # retrieve results of a specific individual and replicate
 initializeLixoftConnectors("simulx")
 project_file <- file.path(getDemoPath(), "1.overview", "importFromMonolix_clinicalTrial.smlx")
 loadProject(project_file)
 runSimulation()
 getSimulationResults(id = "1", rep = 10)
#> $res
#> $res$y1
#>   rep id original_id time        y1      group
#> 1  10  1           4    0 0.0586234 gr_BID_N30
#> 2  10  1           4  168 0.9663150 gr_BID_N30
#> 3  10  1           4  336 0.8041730 gr_BID_N30
#> 
#> $res$y2
#>   rep id original_id time      y2      group
#> 1  10  1           4    0 97.4036 gr_BID_N30
#> 2  10  1           4  168 60.6076 gr_BID_N30
#> 3  10  1           4  336 66.4867 gr_BID_N30
#> 
#> 
#> $individualParameters
#> $individualParameters$gr_BID_N30
#>   rep id original_id     Tlag      ka       V       Cl      R0      kout
#> 1  10  1           4 0.539999 1.08905 5.31756 0.148667 97.9608 0.0463222
#>       Imax    IC50 age wt sex
#> 1 0.995166 1.94243  46 40   0
#> 
#> 
#> $populationParameters
#> $populationParameters$gr_BID_N30
#>   rep Tlag_pop  ka_pop   V_pop beta_V_logtWt  Cl_pop beta_Cl_age  R0_pop
#> 1  10  0.79175 1.27746 7.78432      0.876572 0.10338   0.0082347 93.9251
#>   beta_R0_sex_1  kout_pop Imax_pop IC50_pop omega_Cl omega_IC50 omega_Imax
#> 1     0.0319751 0.0538163 0.995209  1.13562 0.272311   0.459364   0.693511
#>    omega_R0 omega_Tlag  omega_V omega_ka omega_kout      a1        b1      a2
#> 1 0.0511816   0.548585 0.140251 0.771638   0.102566 0.27265 0.0475413 3.85121
#> 
#> $populationParameters$gr_OD_N30
#>   rep Tlag_pop  ka_pop   V_pop beta_V_logtWt  Cl_pop beta_Cl_age  R0_pop
#> 1  10  0.79175 1.27746 7.78432      0.876572 0.10338   0.0082347 93.9251
#>   beta_R0_sex_1  kout_pop Imax_pop IC50_pop omega_Cl omega_IC50 omega_Imax
#> 1     0.0319751 0.0538163 0.995209  1.13562 0.272311   0.459364   0.693511
#>    omega_R0 omega_Tlag  omega_V omega_ka omega_kout      a1        b1      a2
#> 1 0.0511816   0.548585 0.140251 0.771638   0.102566 0.27265 0.0475413 3.85121
#> 
#> 
#> $doses
#> $doses$gr_BID_N30
#>    rep id original_id time amt tinf admtype washout
#> 1   10  1           4    0   4  NaN       1       0
#> 2   10  1           4   12   4  NaN       1       0
#> 3   10  1           4   24   2  NaN       1       0
#> 4   10  1           4   36   2  NaN       1       0
#> 5   10  1           4   48   2  NaN       1       0
#> 6   10  1           4   60   2  NaN       1       0
#> 7   10  1           4   72   2  NaN       1       0
#> 8   10  1           4   84   2  NaN       1       0
#> 9   10  1           4   96   2  NaN       1       0
#> 10  10  1           4  108   2  NaN       1       0
#> 11  10  1           4  120   2  NaN       1       0
#> 12  10  1           4  132   2  NaN       1       0
#> 13  10  1           4  144   2  NaN       1       0
#> 14  10  1           4  156   2  NaN       1       0
#> 15  10  1           4  168   2  NaN       1       0
#> 16  10  1           4  180   2  NaN       1       0
#> 17  10  1           4  192   2  NaN       1       0
#> 18  10  1           4  204   2  NaN       1       0
#> 19  10  1           4  216   2  NaN       1       0
#> 20  10  1           4  228   2  NaN       1       0
#> 21  10  1           4  240   2  NaN       1       0
#> 22  10  1           4  252   2  NaN       1       0
#> 23  10  1           4  264   2  NaN       1       0
#> 24  10  1           4  276   2  NaN       1       0
#> 25  10  1           4  288   2  NaN       1       0
#> 26  10  1           4  300   2  NaN       1       0
#> 27  10  1           4  312   2  NaN       1       0
#> 28  10  1           4  324   2  NaN       1       0
#> 
#> 
#> $id_mapping
#>   rep id      group original_id
#> 2  10  1 gr_BID_N30           4
#> 
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.