100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

BUSI 1301 INTRODUCTION TO BUSINESS (MGMT 105) HOMEWORK 6 TEXAS A& M UNIVERSITY

Rating
-
Sold
-
Pages
9
Uploaded on
14-11-2024
Written in
2024/2025

BUSI 1301 INTRODUCTION TO BUSINESS (MGMT 105) HOMEWORK 6 TEXAS A& M UNIVERSITY

Institution
BUSI 1301
Course
BUSI 1301

Content preview

lOMoAR cPSD| 19857451




BUSI 1301 INTRODUCTION TO
BUSINESS (MGMT 105)
HOMEWORK 6 TEXAS A& M
UNIVERSITY

, lOMoAR cPSD| 19857451




The data set Lifecycle Savings has information about the rate of personal savings in different
countries during the 1960s. The data set comes with R. Read help (Life Cycle Savings) for
information about what the columns in the data set are.

1. Out-of-sample validation.

a. Create a linear regression model to predict the savings rate using the four other variables.

Ans. > model<-lm(sr~pop15+pop75+dpi+ddpi, data=LifeCycleSavings)
> model

Call:
lm(formula = sr ~ pop15 + pop75 + dpi + ddpi, data = LifeCycleSavings)

Coefficients:
(Intercept) pop15 pop75 dpi ddpi
28.5660865 -0.4611931 -1.6914977 -0.0003369 0.4096949


b. Print out a summary of the model

Ans. > summary(model)

Call:
lm(formula = sr ~ pop15 + pop75 + dpi + ddpi, data = LifeCycleSavings)

Residuals:
Min 1Q Median 3Q Max
-8.2422 -2.6857 -0.2488 2.4280 9.7509

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 28.5660865 7.3545161 3.884 0.000334 ***
pop15 -0.4611931 0.1446422 -3.189 0.002603 **
pop75 -1.6914977 1.0835989 -1.561 0.125530
dpi -0.0003369 0.0009311 -0.362 0.719173
ddpi 0.4096949 0.1961971 2.088 0.042471 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 3.803 on 45 degrees of freedom
Multiple R-squared: 0.3385, Adjusted R-squared: 0.2797
F-statistic: 5.756 on 4 and 45 DF, p-value: 0.0007904



c. Perform 10-fold cross validation on the model using the CVlm function in the DAAG library.

Ans.
> load("C:/Users/meatr/Downloads/DAAG Datasets and Functions.RData")

> cv<-CVlm(LifeCycleSavings,formula(sr~pop15+pop75+dpi+ddpi),10)
Analysis of Variance Table

Response: sr
Df Sum Sq Mean Sq F value Pr(>F)

Written for

Institution
BUSI 1301
Course
BUSI 1301

Document information

Uploaded on
November 14, 2024
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
saraciousstuvia WALDEN UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
560
Member since
3 year
Number of followers
380
Documents
11349
Last sold
1 week ago
BRIGHTEST IDEAS EDUCATIONAL WORLD

Welcome to the best educational world with the brightest,amazing and all complete study materials. I wish you great,easy learning and success through out your course. Kindly message me if you cant find your tutorials

4.0

114 reviews

5
61
4
20
3
17
2
3
1
13

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions