hosmerlem_gof: Chi Sq - Goodness of Fit

Description Usage Arguments Value Author(s) Examples

Description

Checking Chi Sq - Goodness of Fit.

Usage

1
hosmerlem_gof(df, target, probability, g = 10)

Arguments

df

dataframe which target and variable present.

target

Target variable.

probability

Predicted probabilities.

Value

Chi Sq. values

Author(s)

Peter D. M. Macdonald, McMaster University

Examples

1
2
3
4
5
6
data("CTDF")
mylogit<-glm(TARGET~HOLDING_PERIOD+NO_OF_L_CR_TXNS+AGE_BKT,data=CTDF,family = "binomial")
summary(mylogit)
vif(mylogit)
CTDF$prob<-predict.glm(mylogit,CTDF,type="response")
hosmerlem_gof(CTDF,"TARGET","prob")

Jishnurck26/logistic documentation built on May 29, 2019, 2:49 p.m.