Question
2. The data in hmw5-prob2 contains values of the following four variables for 93 employees of Harris Bank Chicago in 1977: ·y

"SALARY","EDUC","EXPER","TIME"
3900,12,0,1
4020,10,44,7
4290,12,5,30
4380,8,6,7
4380,8,8,6
4380,12,0,7
4380,12,0,10
4380,12,5,6
4440,15,75,2
4500,8,52,3
4500,12,8,19
4620,12,52,3
4800,8,70,20
4800,12,6,23
4800,12,11,12
4800,12,11,17
4800,12,63,22
4800,12,144,24
4800,12,163,12
4800,12,228,26
4800,12,381,1
4800,16,214,15
4980,8,318,25
5100,8,96,33
5100,12,36,15
5100,12,59,14
5100,15,115,1
5100,15,165,4
5100,16,123,12
5160,12,18,12
5220,8,102,29
5220,12,127,29
5280,8,90,11
5280,8,190,1
5280,12,107,11
5400,8,173,34
5400,8,228,33
5400,12,26,11
5400,12,36,33
5400,12,38,22
5400,12,82,29
5400,12,169,27
5400,12,244,1
5400,15,24,13
5400,15,49,27
5400,15,51,21
5400,15,122,33
5520,12,97,17
5520,12,196,32
5580,12,133,30
5640,12,55,9
5700,12,90,23
5700,12,117,25
5700,15,51,17
5700,15,61,11
5700,15,241,34
6000,12,121,30
6000,15,79,13
6120,12,209,21
6300,12,87,33
6300,15,231,15
4620,12,12,22
5040,15,14,3
5100,12,180,15
5100,12,315,2
5220,12,29,14
5400,12,7,21
5400,12,38,11
5400,12,113,3
5400,15,18,8
5400,15,359,11
5700,15,36,5
6000,8,320,21
6000,12,24,2
6000,12,32,17
6000,12,49,8
6000,12,56,33
6000,12,252,11
6000,12,272,19
6000,15,25,13
6000,15,36,32
6000,15,56,12
6000,15,64,33
6000,15,108,16
6000,16,46,3
6300,15,72,17
6600,15,64,16
6600,15,84,33
6600,15,216,16
6840,15,42,7
6900,12,175,10
6900,15,132,24
8100,16,55,33
0 0
Add a comment Improve this question Transcribed image text
Answer #1

y1<-salaries$SALARY
x1<-salaries$EDUC
x2<-salaries$EXPER
x3<-salaries$TIME

fit <- lm(y1 ~ x1 + x2 + x3)
summary(fit)

Call:
lm(formula = y1 ~ x1 + x2 + x3)

Residuals:
Min 1Q Median 3Q Max
-1240.2 -421.5 0.0 349.6 1924.4

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3179.4798 383.4248 8.292 1.09e-12 ***
x1 139.6093 27.7125 5.038 2.45e-06 ***
x2 1.4840 0.6971 2.129 0.03601 *
x3 20.6291 6.1544 3.352 0.00118 **
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 602.7 on 89 degrees of freedom
Multiple R-squared: 0.302,   Adjusted R-squared: 0.2785
F-statistic: 12.84 on 3 and 89 DF, p-value: 4.803e-07

A) Y1=3179.4798+139.6093X1+1.484X2+20.6291X3

B) F-statistic: 12.84 on 3 and 89 DF, p-value: 4.803e-07

SINCE PVALUE IS LESS THAN 0.05, the equation is good fit

D) Multiple R-squared: 0.302 30.2% of variation in salary is explained by regression


Add a comment
Know the answer?
Add Answer to:
"SALARY","EDUC","EXPER","TIME" 3900,12,0,1 4020,10,44,7 4290,12,5,30 4380,8,6,7 4380,8,8,6 4380,12,0,7 4380,12,0,10 4380,12,5,6 4440,15,75,2 4500,8,52,3 4500,12,8,19 4620,12,52,3 4800,8,70,20 4800,12,6,23 4800,12,11,12...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT