User Tools

Site Tools


r:analysis_of_covariance

Differences

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

Link to this comparison view

Next revision
Previous revision
r:analysis_of_covariance [2016/11/23 09:47] – created hkimscilr:analysis_of_covariance [2019/09/18 07:58] (current) – [Ex. 1] hkimscil
Line 53: Line 53:
 </code> </code>
  
-<code>> anova(lm.model4, lm.model3)+<code>> anova(lm.model3, lm.model4)
 Analysis of Variance Table Analysis of Variance Table
  
-Model 1: Cars93$MPG.city ~ Cars93$EngineSize + Cars93$Price + Cars93$DriveTrain +Model 1: Cars93$MPG.city ~ Cars93$EngineSize + Cars93$Price 
-Model 2: Cars93$MPG.city ~ Cars93$EngineSize + Cars93$Price+Model 2: Cars93$MPG.city ~ Cars93$EngineSize + Cars93$Price + Cars93$DriveTrain
   Res.Df    RSS Df Sum of Sq      F  Pr(>F)     Res.Df    RSS Df Sum of Sq      F  Pr(>F)  
-1     88 1235.                              +1     90 1309.                              
-2     90 1309.7 -  -74.185 2.6419 0.07687 .+2     88 1235.5     74.185 2.6419 0.07687 .
 --- ---
 Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
-></code> + 
 +</code>  
 +====== Ex. 1 ====== 
 +<WRAP round info 60%> 
 +mtcars 데이터를 이용하여 milleage에 영향을 주는 요소로 hp(horsepower)와 wt(weight)로 하여 regression을 하시오.  
 +또한 이에 더하여 cyl 숫자를 더하여 regression을 하시오. 그리고 그 차이점에 대해서 논하시오. 
 +</WRAP> 
 +{{tag> statistics r "analysis of covaraince" ancova}} 
r/analysis_of_covariance.1479863873.txt.gz · Last modified: 2016/11/23 09:47 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki