Create a new r markdown file using r studio

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper HERE Order a Different Paper HERE

Option #1: Logistic Regression on Banks

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

Create a new R Markdown file (Links to an external site.) by performing the following steps.

  1. Open R Studio
  2. Select File | New | R Markdown
  3. Use Module 4 CT Option 1 as 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 20 banks in the Banks.csv (Links to an external site.) 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. Run a logistic regression model by following the process described in section 10.3.
  4. Use the R code example in table 10.2.
  5. Do not partition the data. Instead, use the entire dataset for your model.
  6. Model the Financial Condition attribute as a function of the other attributes. The financial condition of a bank is either strong (1) or weak (0). 
  7. Write the estimated logistic equation in the form of the example in equation 10.9.
  8. Explain the estimated logistic equation in your one-page description.
  9. 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.
  10. Create a confusion matrix and lift chart as described in section 10.4.
  11. Use the R code example in figure 10.6.
  12. 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.
  13. Use the R Markdown Knit drop-down menu to select Knit to Word to create the Word document for your assignment submission.

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 Center (Links to an external site.).