calculate_bic
Calculate BIC
Different variations of the BIC can be calculated:
calculate_bic(model, likelihood, type = "mixed")
model
: (Model) Pharmpy model objectlikelihood
: (numeric) -2LL to usetype
: (str) Type of BIC to calculate. Default is the mixed effects.(numeric) BIC of model fit
## Not run: model <- load_example_model("pheno") results <- load_example_modelfit_results("pheno") ofv <- results$ofv calculate_bic(model, ofv) calculate_bic(model, ofv, type='fixed') calculate_bic(model, ofv, type='random') calculate_bic(model, ofv, type='iiv') ## End(Not run)