User Tools

Site Tools


outliers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
outliers [2016/05/04 08:11] hkimsciloutliers [2017/04/05 07:55] (current) hkimscil
Line 60: Line 60:
  
 <WRAP box 600px> <WRAP box 600px>
-위의 세 그래프 모두, dc가 문제가 될 것 같다는 여지를 보여준다. 나중에 비교를 위해서 아무런 조치를 취하지 않은채 (아래와 같이) 회귀분석을 실시해 본다.+위의 세 그래프 모두, dc가 문제가 될 것 같다는 여지를 보여준다. 나중에 비교를 위해서 dc에 대한 아무런 조치를 취하지 않은채 (아래와 같이) pcmetro, poverty, single을 이용하여 crime rate를 예측하는 회귀분석을 실시해 본다.
 </WRAP> </WRAP>
 +
 <code>regression <code>regression
   /dependent crime   /dependent crime
Line 156: Line 157:
   /residuals=histogram(sdresid) id(state) outliers(sdresid).   /residuals=histogram(sdresid) id(state) outliers(sdresid).
 </code> </code>
-see at http://www2.bc.edu/~stevenw/MB875/mb875_Analyzing%20Residuals.htm for sdresid (studentized deleted residuals). +see at [[https://www2.bc.edu/william-stevenson/MB875/mb875_Analyzing%20Residuals.htm|Analyzing Residuals Document]] for sdresid (studentized deleted residuals). 
 <code> Residuals Statistics(a) <code> Residuals Statistics(a)
  Minimum Maximum Mean Std. Deviation N  Minimum Maximum Mean Std. Deviation N
Line 192: Line 193:
 a. Dependent Variable: violent crime rate a. Dependent Variable: violent crime rate
 </code> </code>
 +
 +<WRAP box 600px #333>
 +leverage 값을 살펴보는 방법이 아래에 제시된다. leverage 값은 회귀계수 추정치(regression coefficient estimates)에 큰 영향을 주는 값을 말하는데 histogram() 명령어와 outliers() 명령어 옵션으로 활용할 수 있다. 이 값은 일반적으로 (2k+2)/n 를 넘지 않아야 하며, 넘는 다면 아웃라이어로 추정될 수 있으니 주목할 필요가 있다. 여기서 k는 변인의 숫자, n은 케이스 숫자를 말한다. 따라서 (2*3+2)/51 의 계산으로 얻은 .1568 을 넘는 leverage 값을 갖는 케이스를 살펴봐야 한다. 
 +
 +아래의 아웃풋을 보면 fl의 경우에는 stduent deleted residual값은 극단적인 마이너스 값을 갖지만, leverage값은 극단적이 아니므로 fl은 분석에 포함되는 것이 옳은 판단일 수도 있겠다. 그러나, dc의 경우에는 leverage값으로도 극단적이라는 평가를 받게 된다.
 +</WRAP>
  
 <code>regression <code>regression
outliers.1462318869.txt.gz · Last modified: 2016/05/04 08:11 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki