View source: R/pvEBayes_object_S3_methods.R
AIC.pvEBayes | R Documentation |
This function defines the S3 AIC
method for objects of class
pvEBayes
. It extracts the Akaike Information Criterion (AIC)
from a fitted model.
## S3 method for class 'pvEBayes'
AIC(object, ..., k = 2)
object |
a |
... |
other input parameters. Currently unused. |
k |
numeric, the penalty per parameter to be used; the default k = 2 is the classical AIC. |
numeric, AIC score for the resulting model.
fit <- pvEBayes(
contin_table = statin2025_44, model = "general-gamma",
alpha = 0.3, n_posterior_draws = NULL
)
AIC_score <- AIC(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.