check.glm.assumptions: GLM Assumptions

Description Usage Arguments Value See Also Examples

View source: R/regressionEvaluation.R

Description

This function checks the most prevalent model assumptions for LM and GLM models, including multi-collinearity, linearity, distribution check (QQ-plot) and homoscedasticity

Usage

1
check.glm.assumptions(model_obj, modelConfig = NULL)

Arguments

model_obj

model object of the LM or GLM model under scrutiny

Value

The function returns a list. The list entries contain visuals and values illustrating the model's compliance with its relevant model assumptions

See Also

glm, lm, pairs.panels

Examples

1
2
3
4
5
fit <- glm(mpg ~ drat + wt, data=mtcars, family = gaussian())
assessment <- check.glm.assumptions(fit)
print(assessment)
assessment$chk_residuals
assessment$chk_homoscedasticity

ivanliu1989/RQuant documentation built on Sept. 13, 2019, 11:53 a.m.