Description Usage Arguments Details Author(s) See Also Examples
model.fit
overall significance of the model and interpretation
1 | model.fit(model)
|
model |
object glm or lm type |
This test asks whether the model with predictors fits significantly better than a model with just an intercept (i.e., a null model).
The test statistic is the difference between the residual deviance for the model with predictors and the null model. The test statistic is distributed chi-squared with degrees of freedom equal to the differences in degrees of freedom between the current and the null model (i.e., the number of predictor variables in the model).
Reference:
LOGIT REGRESSION | R DATA ANALYSIS EXAMPLES, IDRE https://stats.idre.ucla.edu/r/dae/logit-regression/
Myo Minn Oo (Email: dr.myominnoo@gmail.com | Website: https://myominnoo.github.io/)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
## example from IRDE website:
## https://stats.idre.ucla.edu/r/dae/logit-regression/
mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv")
summarize(mydata)
tab(admit, mydata)
tab(rank, mydata)
mydata$rank <- label(mydata$rank)
mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial")
summary(mylogit)
model.output(mylogit)
model.output(mylogit, raw = TRUE)
model.fit(mylogit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.