help: GLM Diagnostic

Description Usage Arguments Examples

Description

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.

Usage

1
2
modeldiagnostic1(x)
modeldiagnostic2(x)

Arguments

x

GLM model.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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)

ViniciusBRodrigues/GLMdiagnostic documentation built on May 17, 2019, 1:35 p.m.