Reference no: EM133424172
Question 1: Load the dataset into a variable "mydata". Remove any rows that contain missing values on any of the variables.
Change the variable "loan_status" to binary (1 for Fully Paid and 0 for charged off). Change the variable "home_ownership" to a categorical variable (0 for RENT, 1 for MORTGAGE and 2 for OWN). Remove the word "months" in variable "term" and the symbol "%" in the variable "int_rate".
Question 2: Split the dataset into 70% training and 30% testing using the sample() function. We are tying to predict "loan_status" so store the variable value in "response.test" and set the value to null on the test dataset.
Question 3: Run the logistic regression on "trainData" using glm() command with "loan_amnt", "funded_amnt", "int_rate", "term", "annual_inc","dti" and "delinq_2yrs" as input variables. Explain what the coefficient values for the variables "int_rate" and "delinq_2yrs" mean in plain English.
Question 4: Now use the predict() function on the test dataset to predict the probability of outcome. Set the predicted outcome to be 1 if probability is greater than 0.5 or else 0. Use the table() command to compare the predicted outcome and the actual. What are the values of precision, recall and overall accuracy?
Question 5: Now use the trainControl() and train() methods on "mydata" to perform 10-fold cross validation and use logistic regression. What are the values of precision, recall, overall accuracy and AUC? (Hint : You need to install the libraries "caret" and "pROC" before you run the models)
How can you test connectivity to an smtp server
: having trouble connecting to google to perform searches. You will need to test the different layers of connectivity
|
Explain the mandatory reporting requirements associated
: List and explain the Mandatory Reporting Requirements associated with Child Abuse and Neglect Abuse, Neglect, and Exploitation of the Frail Elderly.
|
What ?nancial debt is
: Read the chapter carefully and then think of an example from your everyday life, for example, from your job or school work
|
Discuss the aca intersate counseling compact
: What is transpiring in our professional world. Please provide a brief discussion on the ACA Intersate Counseling Compact.
|
Perform 10-fold cross validation and use logistic regression
: Perform 10-fold cross validation and use logistic regression. What are the values of precision, recall, overall accuracy and AUC
|
Give an example of a situation in sports where this could be
: discrimination against individuals with a disability. Give an example of a situation in sports where this could become an issue or cause a school or team
|
What are aspects of working with clients of the same race
: In marriage and family therapy, what are the positive and negative aspects of working with clients of the same race, religious beliefs, SES, etc.
|
What potential harm does media have regard to body image
: What potential harm does media have with regard to body image and eating disorders for both males and females in society today?
|
What is the best method for employers and employees
: Why they are essential for employee motivation, retention, and company sustainability. What is the best method for employers and employees to achieve a balance
|