da.glm.fit: Provides fit indices for GLM models.

Description Usage Arguments Details Value References See Also Examples

View source: R/daFitFunctions.r

Description

Functions only available for logistic regression, based on Azen and Traxel(2009).

Usage

1
da.glm.fit(original.model, newdata = NULL, ...)

Arguments

original.model

Original fitted model

newdata

Data used in update statement

...

ignored

Details

Check daRawResults.

Value

A function described by using-fit-indices. You could retrieve following indices

r2.m

McFadden(1974)

r2.cs

Cox and Snell(1989). Use with caution, because don't have 1 as upper bound

r2.n

Nagelkerke(1991), that corrects the upper bound of Cox and Snell(1989) index

r2.e

Estrella(1998)

References

See Also

Other fit indices: da.betareg.fit(), da.dynlm.fit(), da.lm.fit(), da.lmWithCov.fit(), da.lmerMod.fit(), da.mlmWithCov.fit()

Examples

1
2
3
4
5
6
7
8
x1<-rnorm(1000)
x2<-rnorm(1000)
x3<-rnorm(1000)
y<-factor(runif(1000) > exp(x1+x2+x3)/(1+exp(x1+x2+x3)))
df.1=data.frame(x1,x2,x3,y)
glm.1<-glm(y~x1+x2+x3,data=df.1,family=binomial)
da.glm.fit(original.model=glm.1)("names")
da.glm.fit(original.model=glm.1)(y~x1)

dominanceanalysis documentation built on Jan. 13, 2021, 3:47 p.m.