calculate_eta_shrinkage {pharmr}R Documentation

calculate_eta_shrinkage

Description

Calculate eta shrinkage for each eta

Usage

calculate_eta_shrinkage(
  model,
  parameter_estimates,
  individual_estimates,
  sd = FALSE
)

Arguments

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)

Value

(Series) Shrinkage for each eta

See Also

calculate_individual_shrinkage

Examples

## 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)

[Package pharmr version 1.0.1 Index]