View source: R/functions_wrapper.R
| insert_ebes_into_dataset | R Documentation |
Insert EBEs and ETCs from results into the dataset of a model
insert_ebes_into_dataset(
model,
individual_estimates,
individual_estimates_covariance = NULL
)
model |
(Model) Pharmpy model |
individual_estimates |
(data.frame) Individual eta estimates (EBEs). Could be taken directly from ModelfitResults. |
individual_estimates_covariance |
(data.frame (optional)) Uncertainties of individual estimates (ETCs). Could be taken directly from ModelfitResults. |
(Model) Updated Pharmpy model
## Not run:
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
ebes <- results$individual_estimates
etcs <- results$individual_estimates_covariance
model2 <- insert_ebes_into_dataset(model, ebes, etcs)
model2$datainfo$names
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.