residplot: residplot

Description Usage Arguments Value Examples

View source: R/residplot.R

Description

an example function generating Student residuals histogram

Usage

1
residplot(fit, nbreaks = 10)

Arguments

fit

the result of regression

nbreaks

the number of group

Value

a random sample of size n

Examples

1
2
3
states<-as.data.frame(state.x77[,c("Murder","Population","Illiteracy","Income","Frost")])
fit<-lm(Murder~ Population + Illiteracy + Income + Frost,data=states)
residplot(fit)

chenhj68/StatComp18040 documentation built on May 5, 2019, 11:06 p.m.