ecospat (version 2.0)

ecospat.permut.glm: GLM Permutation Function

Description

A permutation function to get p-values on GLM coefficients and deviance.

Usage

ecospat.permut.glm (glm.obj, nperm)

Arguments

glm.obj
Any calibrated GLM or GAM object with a binomial error distribution.
nperm
The number of permutations in the randomization process.

Value

Details

Rows of the response variable are permuted and a new GLM is calibrated as well as deviance, adjusted deviance and coefficients are calculated. These random parameters are compared to the true parameters in order to derive p-values.

References

Hastie, T., R. Tibshirani and J. Friedman. 2001. Elements of Statistical Learning; Data Mining, Inference, and Prediction, Springer-Verlag, New York.

Legendre, P. and L. Legendre. 1998. Numerical Ecology, 2nd English edition. Elsevier Science BV, Amsterdam.

Examples

Run this code

## Not run: 
# ecospat.permut.glm (get ("glm.Achillea_atrata", envir=ecospat.env), 1000)
# ## End(Not run)

Run the code above in your browser using DataLab