Description Usage Arguments Value Author(s) Examples
Checking Chi Sq - Goodness of Fit.
1 | hosmerlem_gof(df, target, probability, g = 10)
|
df |
dataframe which target and variable present. |
target |
Target variable. |
probability |
Predicted probabilities. |
Chi Sq. values
Peter D. M. Macdonald, McMaster University
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.