View source: R/nm_simulation.R
nm_simulation | R Documentation |
Generates a NONMEM control stream for simulations from a source run.
nm_simulation(
run,
n_simulations = 100,
seed = sample.int(1e+09, 1),
output_table_format = ",1PE11.4",
output_file = NULL
)
run |
|
n_simulations |
integer. Number of simulations ( |
seed |
integer. Seed number for random number generation. |
output_table_format |
(optional) character. NONMEM format (see NONMEM help) for the simulated
output table. Default is |
output_file |
(optional) character. File path to write the generated
control stream to. Default is |
All THETA
, OMEGA
and SIGMA
parameters will be fixed to the source run final estimates.
$ESTIMATION
record(s) will be replaced by a single $SIMULATION
record (with the specified number of simulations).
Simulated output will be saved to a single simtab
file ($TABLE
).
A character string of the generated control stream code.
# Control stream generation from pmxploit::EXAMPLERUN
cs1 <- nm_simulation(EXAMPLERUN, n_simulations = 300)
# see the output
writeLines(cs1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.