View source: R/functions_wrapper.R
calculate_individual_shrinkage | R Documentation |
Calculate the individual eta-shrinkage
Definition: ieta_shr = (var(eta) / omega)
calculate_individual_shrinkage(
model,
parameter_estimates,
individual_estimates_covariance
)
model |
(Model) Pharmpy model |
parameter_estimates |
(array) Parameter estimates of model |
individual_estimates_covariance |
(data.frame) Uncertainty covariance matrices of individual estimates |
(DataFrame) Shrinkage for each eta and individual
calculate_eta_shrinkage
## Not run:
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
pe <- results$parameter_estimates
covs <- results$individual_estimates_covariance
calculate_individual_shrinkage(model, pe, covs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.