-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AIC calculation from cca/rda objects #400
Comments
Looking at the history, I implemented |
Fair enough. One more question; I was digging into the source code a little bit, and for the rda deviance (which is used as the RSS in calculating AIC) the calculation is the sum of residual eigenvalues multiplied by the number of observations minus one. In the original 2003 Godinez-Dominguez and Freire paper (and the Legendre and Anderson 1999 paper), the calculation of RSS is equal to the sum of all eigenvalues minus the sum of the canonical eigenvalues (which should be equal to just the sum of residual eigenvalues). Is there a reason for multiplying this by the number of observations minus one? |
The eigenvalues in vegan are based on scaled data so that they add up to variance instead of direct sum of squares, and we undo this scaling by multiplying with the number of observations minus one. |
I'm having some issues understanding what is going on in the extractAIC.cca function for use in the step() function. In the documentation, it is claimed that cca and rda methods don't have AIC, and that the step function shouldn't be used and instead ordistep should be used; however, Legendre and Anderson's 1999 paper on dbRDA and the subsequent paper from Godínez-Domínguez and Freire (2003) titled "Information-theoretic approach for selection of spatial and temporal models of community organization" give a logical framework for calculating AIC and using it as a selection criterion for model building in investigations of ecological communities. Indeed, you cite this Godinez-Dominguez and Freire paper in the documentation for the extractAIC.cca function. However, you state in the details of the function the following:
"The functions find statistics that resemble deviance and AIC in constrained ordination. Actually, constrained ordination methods do not have a log-Likelihood, which means that they cannot have AIC and deviance. Therefore you should not use these functions, and if you use them, you should not trust them. If you use these functions, it remains as your responsibility to check the adequacy of the result."
I am curious as to where this implication comes from. I can't seem to find any papers discrediting the framework from Godinez-Dominguez and Freire. Any information you might have would be incredibly helpful.
The text was updated successfully, but these errors were encountered: