Skip to contents

This function estimates the parameters of a F distribution from the provided data using maximum likelihood estimation, and then calculates the AIC value based on the fitted distribution.

Usage

util_f_aic(.x)

Arguments

.x

A numeric vector containing the data to be fitted to an F distribution.

Value

The AIC value calculated based on the fitted F distribution to the provided data.

Details

This function calculates the Akaike Information Criterion (AIC) for an F distribution fitted to the provided data.

This function fits an F distribution to the input data using maximum likelihood estimation and then computes the Akaike Information Criterion (AIC) based on the fitted distribution.

Author

Steven P. Sanderson II, MPH

Examples

# Generate F-distributed data
set.seed(123)
x <- rf(100, df1 = 5, df2 = 10, ncp = 1)

# Calculate AIC for the generated data
util_f_aic(x)
#> [1] 250.9574