Hello,
I'm having some issues understanding the new function 'aic.maxent' and what is necessary to fit it. In the older ENMeval version, the function was
calc.aicc(nparam, occ, predictive.maps)
get.params(model) where
nparam: The number of parameters in a model calculated with the get.params function.
occ: A data.frame of occurrence localities.
predictive.maps: A raster layer or RasterStack of predicted model surface(s).
model: A Maxent model object generated by the maxent function in the dismo package.
In this version I'll simply do:
AIC=calc.aicc(get.params(md1),occ[,1:2],r)[1,1] where,
md1 = my model;
occ[, 1:2] = longitude and latitude;
r = my predicted raster from r=predict(md1,env$current,args=c("outputformat=raw"))
@@@@@@@@@@
Now, the function is aic.maxent(p.occs, ncoefs, p = NULL) where,
p.occs = dataframe: raw (maxent.jar) or exponential (maxnet) predictions for the occurrence localities based on one or more models;
ncoefs = numeric: number of non-zero model coefficients
p = RasterStack: raw(maxent.jar) or exponential (maxnet) model predictions; if NULL, AICc will be calculated based on the background points, which already have predictions that sum to 1 and thus need no correction — this assumes that the background points represent a good sample of the study extent
Cheers,