powered by
This function defines the S3 AIC method for objects of class pvEBayes. It extracts the Akaike Information Criterion (AIC) from a fitted model.
AIC
pvEBayes
# S3 method for pvEBayes AIC(object, ..., k = 2)
numeric, AIC score for the resulting model.
a pvEBayes object, which is the output of the function pvEBayes or pvEBayes_tune.
other input parameters. Currently unused.
numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC.
fit <- pvEBayes( contin_table = statin2025_44, model = "general-gamma", alpha = 0.3, n_posterior_draws = NULL ) AIC_score <- AIC(fit)
Run the code above in your browser using DataLab