Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Y you are asked to perform the following tasks by writing a script in R and submit both R codes and a Word document. Read

Yimage text in transcribedyou are asked to perform the following tasks by writing a script in R and submit both R codes and a Word document.

Read the dataset in loan.csv Download loan.csv into R. Call the loaded data, loan. Make sure that you have the directory set to the correct location for the data.

Which variables (columns) are continuousumerical variables? Which columns are factors (categorical variables)?

Calculate the minimum, maximum, mean, median, standard deviation and three quartiles (25th, 50th and 75th percentiles) of loan_amnt.

Calculate the minimum, maximum, mean, median, standard deviation and three quartiles (25th, 50th and 75th percentiles) of int_rate.

Calculate the correlation coefficient of the two variables: int_rate and installment. Do they have a strong relationship?

Calculate the frequency table of term? Whats the mode of term variable?

Calculate the proportion table of loan_status? Whats the mode of loan_status variable?

Calculate the cross table of term and loan_status. Then produce proportions by row and column respectively.

The data is stored in the data frame, loan. Please summarize all the variables using one command.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions