English: Code can be recreated in R with the following code (Commented out)
set.seed(127)x<-seq(1,200,1)err<-NULLfor(iinc(1:200)){err[i]<-rnorm(1,0,i)}y<-3.8*x+25+err;#Auxilliary regressionnaivelm<-lm(y~x)absresid<-abs(naivelm$residuals)auxreg<-lm(absresid~x+0)#no hskederrno<-NULLfor(iinc(1:200)){errno[i]<-rnorm(1,0,15)};yn<-3.8*x+25+errno;par(mfrow=c(2,1))plot(absresid~x,pch=20,main="Heteroskedastic Residuals",ylab="Absolute Value of Residuals")abline(coef=c(0,auxreg$coefficients),col=2)plot(abs(lm(yn~x)$residuals)~x,pch=20,main="Homoskedastic Residuals",ylab="Absolute Value of Residuals")abline(coef=c(lm(abs(lm(yn~x)$residuals)~x)$coefficients),col=2,lty=2);
라이선스
Protonk은(는) 아래 작품의 저작권자로서, 해당 저작물을 다음과 같은 라이선스로 배포합니다.
GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
{{Information |Description = Comparison of residuals between first order Heteroskedastic and Homoskedastic disturbances |Source = I (~~~) created this work entirely by myself. |Date = ~~~~~ |Author = ~~~ |other_versions =