Option #1:Linear Regression ModelIn this Critical Thinking Assignment, you will install R Markdown, explore and summarize a dataset as well as create a linear regression model. Your assignment...




Option #1:Linear Regression Model





In this Critical Thinking Assignment, you will install R Markdown, explore and summarize a dataset as well as create a linear regression model. Your assignment submission will be an R Markdown generated Word document.


Install R Markdown








Download Install R Markdown





. Create a new R Markdown file by performing the following steps.







  1. Open R Studio



  2. Select File | New | R Markdown



  3. UseModule 3 CT Option 1as the Title



  4. Use your name as the Author



  5. Select the Word output format



  6. Delete all default content after the R Setup block of code, which is all content from line 12 through the end of the file.






Explore Boston housing in the





BostonHousing.csv











Download BostonHousing.csv





file by performing the following steps.







  1. Apply what you learned in Modules 1 and 2 about data exploration by selecting and running appropriate data exploration functions. Run at least five functions.



  2. For your assignment submission, copy your commands into your R Markdown file.



    1. Include R comments on all your code.



    2. Separate sections of R code by using appropriate R Markdown headings.









  3. Fit a multiple linear regression model to the median house price (MEDV) as a function of CRIM, CHAS, and RM by following the process underExample: Predicting the Price of Used Toyota Corolla Carsin section 6.3.



  4. Use the R code example shown in Figure 6.3.




    Hint:You will need to remove the categorial variable CAT…MEDV prior to fitting the multiple linear regression model.







  5. Create a scatter plot with the plot() function with the following attributes.



    1. Use MEDV as the y-axis



    2. Use the most significant attribute as the x-axis.



    3. Use the abline() function to add a linear regression line to the scatter plot. Use the y-intercept as the y-value and the factor value of the most significant attribute as the slope value.









  6. For your assignment submission, copy your commands into your R Markdown file.



    1. Include R comments on all your code.



    2. Separate sections of R code by using appropriate R Markdown headings.









  7. Use the R MarkdownKnitdrop-down menu to selectKnit to Wordto create the Word document for your assignment submission.









Software dropdown menu with the option for ‘knit to Word’ selected.





Your assignment submission must be one Word document that meets the following requirements:







  • Is an R Markdown generated Word document containing all R code used in this assignment, appropriate R comments on code, and appropriate R Markdown headings?



  • Does not include a cover page.



  • Does not include an abstract.



  • Includes a one-page description of what you did and what you learned. Add this description to the end of the R Markdown document as a new page. This page must conform to APA guidelines in the


    CSU Global Writing CenterLinks to an external site.








    .



Jan 13, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here