User Tools

Site Tools


using_dummy_variables

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
Last revisionBoth sides next revision
using_dummy_variables [2018/05/14 08:52] – [2 groups] hkimscilusing_dummy_variables [2018/05/16 08:54] – [3 or more groups] hkimscil
Line 2: Line 2:
 ===== 2 groups ===== ===== 2 groups =====
 data: data:
-{{:elemapi2.sav}} \\ +{{:elemapi2.sav}}  
-{{elemapi2_categories.sps}} \\+{{:elemapi2_categories.sps}}  
 + 
 +{{:elemapi2.csv}}
  
 <code> Variable Labels <code> Variable Labels
Line 107: Line 109:
 만약에 ANOVA 테스트에서와 같이 종류가 3개 이상인 변인은 어떻게 처리해야 할까? 아래는 이를 regression으로 테스트 한 결과이다. 만약에 ANOVA 테스트에서와 같이 종류가 3개 이상인 변인은 어떻게 처리해야 할까? 아래는 이를 regression으로 테스트 한 결과이다.
  
-<code> Model Summary +<code> 
-Model R R Square Adjusted R Square Std. Error of the Estimate +> mod2 <- lm(api00 ~ factor(mealcat), data=datavar)  
-1 .867a .752 .752 70.908 +> mod2
-a. Predictors: (Constant), Percentage free meals in 3 categories+
  
- ANOVA(b) +Call: 
-Model Sum of Squares df Mean Square F Sig. +lm(formula = api00 ~ factor(mealcat), data = datavar)
-1 Regression 6072527.519 1 6072527.519 1207.742 .000a +
- Residual 2001144.479 398 5028.001  +
- Total 8073671.997 399  +
-a. Predictors: (Constant), Percentage free meals in 3 categories +
-b. Dependent Variable: api 2000+
  
- Coefficients(a+Coefficients
- Unstandardized Coefficients Standardized Coefficients +     (Intercept factor(mealcat)2  factor(mealcat)3   
-Model B Std. Error Beta t Sig. +           805.7            -166.3            -301.3   
-1 (Constant) 950.987 9.422 100.935 .000 + 
- Percentage of -150.553 4.332 -.867 -34.753 .000 +> summary(mod2) 
- free meals in  + 
- 3 categories +Call: 
-aDependent Variableapi 2000+lm(formula = api00 ~ factor(mealcat), data = datavar) 
 + 
 +Residuals: 
 +     Min       1Q   Median       3Q      Max  
 +-253.394  -47.883    0.282   52.282  185.620  
 + 
 +Coefficients: 
 +                 Estimate Std. Error t value Pr(>|t|)     
 +(Intercept      805.718      6.169  130.60   <2e-16 *** 
 +factor(mealcat)2 -166.324      8.708  -19.10   <2e-16 *** 
 +factor(mealcat)3 -301.338      8.629  -34.92   <2e-16 *** 
 +--- 
 +Signifcodes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 
 + 
 +Residual standard error: 70.61 on 397 degrees of freedom 
 +Multiple R-squared:  0.7548, Adjusted R-squared 0.7536  
 +F-statistic: 611.1 on 2 and 397 DF,  p-value: < 2.2e-16 
 + 
 +
 </code> </code>
  
Line 332: Line 346:
 해석에 대해서 . . . .  해석에 대해서 . . . . 
 ^  **interpretation**  ^^^^ ^  **interpretation**  ^^^^
-|   | mealcat=1   | mealcat=2   | mealcat=  |+|   | mealcat=1   | mealcat=2   | mealcat=  |
 |yr_rnd=0   | cell1   | cell2   | cell3   | |yr_rnd=0   | cell1   | cell2   | cell3   |
 |yr_rnd=1   | cell4   | cell5   | cell6   | |yr_rnd=1   | cell4   | cell5   | cell6   |
Line 338: Line 352:
  
 ^  **interpretation**  ^^^^ ^  **interpretation**  ^^^^
-|   | mealcat=1   | mealcat=2   | mealcat=  |+|   | mealcat=1   | mealcat=2   | mealcat=  |
 |   | mealcat=1->  | mealcat=2->   | mealcat=3->mealcat1,2=0   | |   | mealcat=1->  | mealcat=2->   | mealcat=3->mealcat1,2=0   |
 | yr_rnd=0   | cell1   | cell2   | cell3   | | yr_rnd=0   | cell1   | cell2   | cell3   |
using_dummy_variables.txt · Last modified: 2019/10/18 10:18 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki