User Tools

Site Tools


interaction_effects_in_regression_analysis:answer_ex2

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
interaction_effects_in_regression_analysis:answer_ex2 [2017/11/30 12:47] hkimscilinteraction_effects_in_regression_analysis:answer_ex2 [2023/06/07 02:49] (current) hkimscil
Line 74: Line 74:
 socst 고유의 영향력: 38.6 - 29 = 9.6 socst 고유의 영향력: 38.6 - 29 = 9.6
  
-위의 두 변인을 동시에 투입(enter)한 경우, 
-math 는 14.9 + 29로 설명력을 평가받고 (t-test), 
-socst는 9.6 + 29로 설명력을 평가받는다 (t-test, too).  
  
-결과적으로 두 변인 모두 설명력을 갖는다. 
  
 +위의 두 변인을 동시에 투입(enter)한 경우,
 +math 는 14.9 로 설명력을 평가받고 (t-test),
 +socst는 9.6 로 설명력을 평가받는다 (t-test, too). 
 +<code>
 +> library(ppcor)
 +> spcor.test(read, math, socst)
 +   estimate      p.value statistic   n gp  Method
 +1 0.3861521 1.770448e-08  5.875646 200  1 pearson
 +> spcor.test(read, math, socst)$estimate^2
 +[1] 0.1491134
 +> spcor.test(read, socst, math)$estimate^2
 +[1] 0.09674116
 +
 +</code>
 +즉, 두 변인 고유 영향력이 통계적으로 유의미하다. 
 그런데 . . . .  그런데 . . . . 
  
Line 107: Line 118:
 </code> </code>
  
-16, 10.7은 모두 영향력이 있다고 할 수 있는 상태가 아니며 +<code> 
-43.27.9 = 16 +y hat ~ 37.842715 + -0.110512 x1 + -0.220044 x2 + 0.011281 x1x2 
-38.27.9 = 10.7 +y hat ~ 37.842715 + -0.220044 x2 + (-0.110512 + 0.011281 x2) x1  # x1으로 regression한 결과 
-이 각각은 영향력이 없고의 오버랩인 27.9만이 영향력을 는다. +y hat ~ 37.842715 + -0.110512 x1 + (-0.220044 + 0.011281 x1) x2  # x2 
 +</code> 
 +Main effects 의 significance level이 (p-value < .05) 사라지고 interaction effect가 significant하게 되었다는 것은 math의 read에 대한 설명력이 socst의 양에 따라서 달라지게 된다는 것을그리고 동시에 socst의 설명력이 math의 변화에 따라서 달라지게 된다는 것을 말하는 것으로 이를 종합적으로 고려하면 두 메인 독립변인의 효과는 존재한다고 설명하는 것이 (m3에 따라서) 합리적이다아래는 를 도식화한 그래프이다. 첫 번째 그래프를 보면  
 +  * math 단위가 증가하면 read 점수가 증가하게 되는 것을 의미한다 
 +  * 그런데 socst 점수가 높은 경우에는 그 증가분이 증폭되고 (기울기가 커지고) 
 +  * socst점수가 낮은 경우에는 그 증가분이 둔화되는 경향을 보인다.  
 + 
 +{{:interaction_effects_in_regression_analysis:pasted:20230607-005145.png}} 
 +{{:interaction_effects_in_regression_analysis:pasted:20230607-005227.png}} 
interaction_effects_in_regression_analysis/answer_ex2.1512015459.txt.gz · Last modified: 2017/11/30 12:47 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki