diaglm: test whether linear model assumptions have been violated

Description Usage Arguments Value Examples

Description

test for unusual data, nonlinearity, non-normality, non-constant error variance, auto-correlation

Usage

1
diaglm(x, file = "result.txt")

Arguments

x

an object, which is a result from a linear model (lm)

file

is the name of text file you want to create (e.g.,'mydiagnosis.txt'). It is iniated as 'result.txt' Note that the file will be saved at the working directory

Value

The statistical tests results, outlierTest, durbinWatsonTest, VIF, and gvlma

Examples

1
2
3
data(data)
mod<-lm(data$tolerance_scale~data$sg_participation+data$virtual_si+as.numeric(data$EDUC)+as.numeric(data$yrbrn)+data$IVRACE2+data$IVRACE3+data$gndr+as.numeric(data$lrscale))
diaglm(mod)

bblpo/diaglm documentation built on May 26, 2019, 11:58 p.m.