-
Notifications
You must be signed in to change notification settings - Fork 6
/
explore.r
19 lines (17 loc) · 826 Bytes
/
explore.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
library(gplots)
# Load data
pastpastloans=read.csv(file='pastloanstats.csv', header=T)
# Individual predictors w/ CI
plotmeans(pastloans$DV ~ pastpastloans$Amount.Requested.binned)
plotmeans(pastloans$DV ~ pastloans$Home.Ownership)
plotmeans(pastloans$DV ~ pastloans$Loan.Purpose)
plotmeans(pastloans$DV ~ pastloans$State)
plotmeans(pastloans$DV ~ pastloans$CREDIT.Grade)
plotmeans(pastloans$DV ~ pastloans$Open.CREDIT.Lines)
plotmeans(pastloans$DV ~ pastloans$Employment.Length)
plotmeans(pastloans$DV ~ pastloans$Inquiries.in.the.Last.6.Months)
plotmeans(pastloans$DV ~ pastloans$FICO.Range)
plotmeans(pastloans$DV ~ pastloans$Amount.Requested.mod500)
plotmeans(pastloans$DV ~ pastloans$Amount.Requested.mod100)
plotmeans(pastloans$DV ~ pastloans$Amount.Requested.mod1000z)
plotmeans(pastloans$DV ~ pastloans$Loan.Length)