View source: R/sim-diagnostics.R
convert_to_simulation | R Documentation |
Replaces $EST with $SIM.
convert_to_simulation(m, seed = 12345, subpr = 1)
m |
A nm object. |
seed |
Numeric (default = |
subpr |
Numeric (default = |
Will only change $EST/$SIM, therefore it will not be sufficient to
change a categorical estimation control file to simulation. You will likely
need to perform a manual edit
for categorical data simulation.
An nm object with modified ctl_contents
field.
## Not run: ## requires NONMEM to be installed m1s <- m1 %>% child(run_id = "m1s") %>% update_parameters(m1) %>% convert_to_simulation(subpr = 50) %>% run_nm() m1s %>% nm_render("Scripts/basic_vpc.Rmd") m1s %>% nm_render("Scripts/basic_ppc.Rmd") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.