MIDTERM – SOLUTION KEY
CODING QNS
Q21) Please estimate a linear regression model (using the lm function) with Personal as the
dependent variable and Room.Board as the independent variable. What are the model’s Rsquared and adjusted R-squared values?
a) 0.00549, 0.048
b) 0.0143, 0.022
c) 0...
midterm – solution key coding qns q21 please estimate a linear regression model using the lm function with personal as th
Written for
Georgia Institute Of Technology
MGT 6203 Special Topics in Mgt
All documents for this subject (6)
1
review
By: gregcarmel • 3 year ago
By: Examhack • 3 year ago
why the one star though, that's a bit unfair....I will appreciate your feedback
Seller
Follow
Examhack
Reviews received
Content preview
MIDTERM – SOLUTION KEY
CODING QNS
Q21) Please estimate a linear regression model (using the lm function) with Personal as the
dependent variable and Room.Board as the independent variable. What are the model’s R-
squared and adjusted R-squared values?
a) 0.00549, 0.048
b) 0.0143, 0.022
c) 0.0398, 0.0385
d) 0.0325, 0.0336
, ## F-statistic: 32.1 on 1 and 775 DF, p-value: 2.065e-08
Q22)Based on the linear-linear regression model in the previous question (with Personal as the
dependent variable and Room.Board as the independent variable), fit three nonlinear models
using those two variables. Based on their adjusted R-squared values, which one of the four
models is most appropriate to use?
a) Log-Linear
b) Log-Log
c) Linear-Linear
d) Linear-Log
Answer: B (Week 3 lesson 4)
summary(lm(log(College$Personal)~College$Room.Board))
## Call:
## lm(formula = log(College$Personal) ~ College$Room.Board)
##
## Residuals:
## Min 1Q Median 3Q Max
## -1.61024 -0.31235 0.03383 0.31037 1.77383
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 7.485e+00 6.992e-02 107.057 < 2e-16 ***
## College$Room.Board -9.187e-05 1.556e-05 -5.904 5.3e-09 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.4754 on 775 degrees of freedom
## Multiple R-squared: 0.04304, Adjusted R-squared: 0.04181
## F-statistic: 34.86 on 1 and 775 DF, p-value: 5.303e-09
summary(lm(log(College$Personal)~log(College$Room.Board)))
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Examhack. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.