User Tools

Site Tools


c:ma:2019:multiple_regression_exercise

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
c:ma:2019:multiple_regression_exercise [2019/11/08 10:42] – [Ex. 2] hkimscilc:ma:2019:multiple_regression_exercise [2019/11/08 10:46] – [Ex. 2] hkimscil
Line 78: Line 78:
 F-statistic: 7.738 on 1 and 395 DF,  p-value: 0.005667 F-statistic: 7.738 on 1 and 395 DF,  p-value: 0.005667
 </code> </code>
 +
 +<code>> lm.sal.rank <- lm(salary ~ rank, data=Salaries)
 +> summary(lm.sal.rank)
 +
 +Call:
 +lm(formula = salary ~ rank, data = Salaries)
 +
 +Residuals:
 +   Min     1Q Median     3Q    Max 
 +-68972 -16376  -1580  11755 104773 
 +
 +Coefficients:
 +              Estimate Std. Error
 +(Intercept)      80776       2887
 +rankAssocProf    13100       4131
 +rankProf         45996       3230
 +              t value Pr(>|t|)    
 +(Intercept)    27.976  < 2e-16 ***
 +rankAssocProf   3.171  0.00164 ** 
 +rankProf       14.238  < 2e-16 ***
 +---
 +Signif. codes:  
 +  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’
 +  0.05 ‘.’ 0.1 ‘ ’ 1
 +
 +Residual standard error: 23630 on 394 degrees of freedom
 +Multiple R-squared:  0.3943, Adjusted R-squared:  0.3912 
 +F-statistic: 128.2 on 2 and 394 DF,  p-value: < 2.2e-16
 +
 +> </code>
 ====== Discussion ====== ====== Discussion ======
 Common topics Common topics
c/ma/2019/multiple_regression_exercise.txt · Last modified: 2021/11/11 10:14 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki