| How to use | R Documentation | 
This package generates the following plots for Generalized Linear Model diagnostics: Q-Q plot, Residuals vs Fitted, Histogram of Residuals and Cook's distance plot.
modeldiagnostic1(x) modeldiagnostic2(x)
x | 
 GLM model.  | 
varY<-c(0,10,20,30,40,50,20,30,43,28)
varX1<-c(0,11,22,31,44,50,24,34,12,45)
varX2<-c("A","B","A","B","C","C","A","B","C","A")
data<-data.frame(varY,varX1,varX2)
fit <- glm(
varY ~ varX1 * varX2,
data = data
)
modeldiagnostic1(fit)
modeldiagnostic2(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.