compute_aic {quollr} | R Documentation |
Compute the Akaike Information Criterion (AIC) for a given model.
Description
Compute the Akaike Information Criterion (AIC) for a given model.
Usage
compute_aic(p, mse, num_bins, num_obs)
Arguments
p |
Number of dimensions of the data set. |
mse |
Mean squared error (MSE) of the model. |
num_bins |
Total number of bins without empty bins used in the model. |
num_obs |
Total number of observations in the training or test set. |
Value
The AIC value for the specified model.
Examples
# Example usage of compute_aic function
p <- 5
mse <- 1500
num_bins <- 10
num_obs <- 100
aic_value <- compute_aic(p, mse, num_bins, num_obs)
cat("AIC Value:", aic_value, "\n")
[Package quollr version 0.1.1 Index]