Description Usage Arguments Value Author(s) Examples
Estimate explained deviance from model output
1 | exp_dev(mod)
|
mod |
a fitted model object (GLM or GAM) |
Estimate of explained deviance
Taken from ecospat package & modified by Philipp Brun
1 2 3 4 5 6 7 8 9 10 | # explained deviance for a glm
mod1=glm(X3740 ~ poly(bio_01,2) + poly(bio_01,2) + poly(forest_fraction,2),
data=obs.sel,family="binomial")
exp_dev(mod1)
# explained deviance for a gam
library(gam)
mod2=gam(X3740 ~ s(bio_01) + s(bio_01) + s(forest_fraction),
data=obs.sel,family="binomial")
exp_dev(mod2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.