# \donttest{
set.seed(2203)
y <- rkw(1000, alpha = 2.5, beta = 1.5)
# Fit different models to the same data
fit1_kw <- gkwfit(y, family = "kw", silent = TRUE)
fit2_bkw <- gkwfit(y, family = "bkw", silent = TRUE)
fit3_gkw <- gkwfit(y, family = "gkw", silent = TRUE)
# Calculate BIC for a single model
bic1 <- BIC(fit1_kw)
print(bic1)
# Compare BIC values for multiple models
bic_comparison <- c(BIC(fit1_kw), BIC(fit2_bkw), BIC(fit3_gkw))
print(bic_comparison)
# }
Run the code above in your browser using DataLab