## requires NONMEM to be installed
if (FALSE) {
## create tibble of covariate step with model objects as column m
dsm1 <- m1 %>% covariate_step_tibble(
run_id = "m1_f1",
dtest = dtest,
direction = "forward"
)
## run all models greedily
dsm1$m <- dsm1$m %>% run_nm()
wait_finish(dsm1$m)
## extract results and put into tibble
dsm1 <- dsm1 %>% bind_covariate_results()
## plot goodness of fit diagnostics top 3 models (in terms of p-value)
dsm1$m[1:3] %>% nm_render("Scripts/basic_gof.Rmd")
}
Run the code above in your browser using DataLab