UNT Week 3 Logistic Regression without Cross Validation Project
Description
Unformatted Attachment Preview
November 14, 2022
0.1
Week 3 Lab Assignment
0.1.1
Credit Data
In this R Lab assignment, we will use credit data set to identify whether a customer is risky or
not in terms of repaying the loan. The dataset is in csv format, we read the data with read.csv
command in R.
Credit dataset includes the following variables: – creditability: Credit risk, Good (1), Bad (0)
(This is our target variable.) – balance: No account: (1), None (No balance) (2), Some Balance
(3), High Balance (4) – credit_duration: Duration of credit in months – payment_status:
Payment Status of Previous Credit. Unknown (0), Some Problems (1), Paid Up (2), No Problems
(in this bank) (3), No Problems (in all banks) (4) – credit_amount: current amount of credit
from other accounts – wealth: None (1),Below 100 (2), In between 100 and 999 (3), In between
1000 and 2000 (4), above 2000 (5) – employment_length: Employment Length: Below 1 year
(including unemployed) (1), one to four years (2), four to seven years (3), seven to ten years (4),
more than ten years (5) – sex_marital: Sex and marital status: Male Divorced/Single (1), Male
Married/Widowed (2), Female Married/Widowed (3), Female Divorced/Single (4) – age: Age in
years
[2]: # call the libraries we will use in the lab assignment
library(tidyverse)
library(caret)
library(dplyr)
library(testthat)
# import the credit.csv data and name it as creditdata in R. Data has the?
,?column names in the first row, so set header=TRUE
creditdata
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."