User Tools

Site Tools


interaction_effects_in_regression_analysis

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
Next revisionBoth sides next revision
interaction_effects_in_regression_analysis [2017/11/30 12:33] – [Ex. 2] hkimscilinteraction_effects_in_regression_analysis [2023/06/06 03:11] – [E.g. 1 One category and one continuous] hkimscil
Line 86: Line 86:
 Residual standard error: 0.4842 on 46 degrees of freedom Residual standard error: 0.4842 on 46 degrees of freedom
 Multiple R-squared:  0.9983,    Adjusted R-squared:  0.9981  Multiple R-squared:  0.9983,    Adjusted R-squared:  0.9981 
-F-statistic:  8792 on 3 and 46 DF,  p-value: < 2.2e-16</code>+F-statistic:  8792 on 3 and 46 DF,  p-value: < 2.2e-16 
 +</code> 
 +<code> 
 +regression formula: 
 +y hat ~ 1.35817 + 2.95059*x + -2.63301*f1High + 1.59598*x:f1High 
 +x: 질소 
 +f1: High | Low 
 +</code> 
 +  * when f1High = 0,  
 +    * ''y hat ~ 1.35817 + 2.95059*x''  
 +    * x변인(질소)이 0인 상태일 때의 작물의 무게가 1.3g정도 된다는 것을 말한다. 
 +    * 다음의 x는 x변인(질소)의 단위가 1씩 증가할 때마다 작물의 무게는 2.9씩 증가한다는 것을 말한다. (일반적인 regression line 해석) 
 +  * when f1High = 1,  
 +    * ''y hat ~ 1.35817 + 2.95059*x + -2.63301*(1) + 1.59598*x:(1)'' 
 +    * ''y hat ~ 1.35817 + -2.63301*(1) + 2.95059*x + 1.59598*x:(1)'' 
 +    * ''y hat ~ -1.27493 + 4.54657x'' 
 +    * x:f1High는 온도가 High일경우에 x의 영향력이 1.59 더 많다는 것을 말한다 (1.59598*x:(1)).  
 +    * 즉, x의 기울기(slope)는 온도에 따라서 변하는데, 온도가 높은 상태일 경우에 2.90 + 1.59 = 4.54임을 말한다.  
 +    * 또한 온도가 높을 상태일 때의 절편은 -1.27493 가 된다.
  
-coefficient 해석 
-  - 우선 f1High 라는 변인은 High 상태(온도가 높은 상태)를 의미. 따라서 default 값(제어된 값)은 온도가 낮은 상태 (low). 
-  - 절편 = 온도가 Low인 상태(제어상태)이며 x변인(질소)이 0인 상태일 때의 작물의 무게가 1.3g정도 된다는 것을 말한다. 
-  - 다음의 x는 x변인(질소)의 단위가 1씩 증가할 때마다 작물의 무게는 2.9씩 증가한다는 것을 말한다. (일반적인 regression line 해석) 
-  - 다음 x:f1High는 온도가 High일경우에 x의 영향력이 1.59 더 많다는 것을 말한다. 즉, x의 기울기(slope)는 온도에 따라서 변하는데, 온도가 높은 상태일 경우에 2.90 + 1.59 = 4.54임을 말한다.  
 <code>library(ggplot2) <code>library(ggplot2)
 library(jtools) # in case not loading, install.packages("jtools") library(jtools) # in case not loading, install.packages("jtools")
Line 680: Line 693:
   * How do you interpret the result.   * How do you interpret the result.
   * Draw a plot to make your interpretation easy to understand   * Draw a plot to make your interpretation easy to understand
-  * [[Answer_ex2]]+  * [[:interaction_effects_in_regression_analysis:answer_ex2]]
  
interaction_effects_in_regression_analysis.txt · Last modified: 2023/06/14 08:54 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki