I would like to perform an AIC on a maxnet model.
I run a model using maxnet package in R and I want to perform an AIC on this model.
I tried to use the SDMtune package in R but the class of the maxnet output does not correspond to the class requested by the SDMtune package.
I am not very familiar with the output so it would be great also if AIC can be calculated manually from the maxnet model output.
Example:
library(maxnet)
data("bradypus")
mod <- maxnet(p=bradypus$presence, data = bradypus[-1],
regmult =1:3, # to adjust regularization
classes = "q")
mod
# apply here AIC or BIC
....