CSUGC Multiple Regression Model with Predictor Variables Project

Submission Template – Assignment
Student Identifying Information
Name:
Course:
Module:
Date:
Embed Here Your R (*.R) Script File or Submit it Separately:
Insert Here APA-Titled and Ordered Screenshots of Steps:
Add Here APA-Styled Explanation of Your Work (200 words):
Add Here APA-Styled Interpretation of Your Results (200 word):
Add Here APA-Styled Reflection on Your Experience (200 words):
1. Create an R script (*.R) file to predict, for a given new data set, values of the ¼
mile in second time variable (qsec) using multiple linear regression modeling
according to the steps given below. Give the script file a name that includes your
first name and last name like this Solution-W1-FirstName-LastName.R.
Complete these steps:
Step 1
Include these 3 lines of comments at the beginning of your R (*.R) script file to document
the script:
# Name: Elizabeth Abrams
# Course: MIS446
# Module: 8
Step 2
Build a multiple linear regression model using the mtcars data set.
1.
I.
II.
III.
Create a data frame that includes only the following variables: qsec, hp, wt,
cyl, carb, and disp of the mtcars data set. (Drop the other 5 variables.) You
will use this data frame to build your multiple regression model. List the
variable names in this data frame.
Using the qsec (the quarter mile time is the number of seconds required for
a vehicle to traverse a distance of a quarter mile when accelerating from a
standing start)as the dependent variable and the hp, wt, cyl, carb, and disp
variables as possible predictors, confirm or disconfirm, statistically and
visually, that each predictor is linearly related to the dependent variable.
Hint: use cor() and pairs() functions.
Build a multiple linear regression model using the qsec as the dependent
variable and the hp, wt, cyl, carb, and disp variables as its predictors.
Explore the resulting multiple linear regression model.
Your R code should be well commented and well organized to explain what the code
does.
Step 3
Enter this Sys.time() R function to print the current date and time and this
Sys.getenv(“username”) R function to print your username as shown here:
Step 4
Refine the regression modeling by using only the three most significant predictors and
use this second model to predict, for a given new data set, values of qsec variable.
1.
I.
II.
Build a second multiple linear regression model using the qsec as the
dependent variable and only the three most significant predictors as
identified in the first model. Explore the resulting second multiple linear
regression model.
Hint: the three most significant predictors should be the wt, carb, and disp
variables.
Using your second multiple regression model, predict values of the qsec
variable for the following observations:
wt=2, carb=2, and disp=100,
wt=3, carb=4, and disp=200,
wt=4, carb=4, and disp=300, and
wt=5, carb=6, and disp=400
Your R code should be well commented and well organized to explain what the code
does.
Step 5
Enter this Sys.time() R function to print current date and time and this
Sys.getenv(“username”) R function to print your username as shown here:
2. Execute your *.R script file and display the results of its execution in the RStudio
console and/or the Plots tabs.
Take screenshots of your ordered steps to demonstrate successful completion of your
work. The screenshot should show the R commands you applied and the results you
obtained. Do not capture trial and error results. Only your final results should be
captured.
3. Summarize your work on this assignment as follows:
o Explain how you completed this work and how you resolved the issues
you faced, if any. Explanation of your work should be relevant and
detailed.
o Interpret the results you obtained from your work. Interpretation of
results should be relevant and accurate.
o Reflect on your experience with this assignment and the lessons you
learned. Reflection on experience should be relevant and personalized.
To submit your response to this assignment:
1. Prepare all the required *.R script file and screenshots.
2. Prepare your summary of your work (what you did, interpretation of results, and
reflection).
3. Use the Submission Template – Assignment Download Submission Template Assignmentdocument and complete all its sections from your prepared
screenshots and work summary.
4. Make sure your completed Submission Template – Assignment document
o follows the order given in the submission template.
o is at least 3-4 pages in length.
has embedded your *.R script file or you can submit your *.R script file
separately.
o includes all screenshots in the same order of execution of your *.R
script.
o meets the APA labeling requirements for tables, figures, (including
screenshots), code, and math.
o conforms to CSU Global Guide to Writing and APA.
5. Submit your completed Submission Template – Assignment document.
o

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER