Question
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
Yyou 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started