View source: R/functions_wrapper.R
calculate_eta_shrinkage | R Documentation |
Calculate eta shrinkage for each eta
calculate_eta_shrinkage(
model,
parameter_estimates,
individual_estimates,
sd = FALSE
)
model |
(Model) Pharmpy model |
parameter_estimates |
(array) Parameter estimates |
individual_estimates |
(data.frame) Table of individual (eta) estimates |
sd |
(logical) Calculate shrinkage on the standard deviation scale (default is to calculate on the variance scale) |
(Series) Shrinkage for each eta
calculate_individual_shrinkage
## Not run:
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
pe <- results$parameter_estimates
ie <- results$individual_estimates
calculate_eta_shrinkage(model, pe, ie)
calculate_eta_shrinkage(model, pe, ie, sd=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.