From f1e761cd77c45303936a782b1e3738ae6bc54384 Mon Sep 17 00:00:00 2001 From: llopez37-stat660 <42554287+llopez37-stat660@users.noreply.github.com> Date: Sat, 27 Oct 2018 14:35:51 -0700 Subject: [PATCH] Update STAT660-01_f18-team-1_project2_data_analysis_by_LL.sas --- ...18-team-1_project2_data_analysis_by_LL.sas | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/STAT660-01_f18-team-1_project2_data_analysis_by_LL.sas b/STAT660-01_f18-team-1_project2_data_analysis_by_LL.sas index ccb116d..29f6700 100644 --- a/STAT660-01_f18-team-1_project2_data_analysis_by_LL.sas +++ b/STAT660-01_f18-team-1_project2_data_analysis_by_LL.sas @@ -45,6 +45,17 @@ Follow Up: Might try to see if we can get more clarification on the homeowners a well as seperate by state/region. ; +proc means + data = loanstats + class + home_ownership + ; + var + annual inc + ; + run + ; + title1 'Research Question: Is there a correlation between interest rate and the annual income with loan amount and grade?' ; @@ -65,6 +76,13 @@ Follow Up: Might have to change the question around if we find no correlation by adding other variables. ; +proc corr + data = loanstats + model + int_rate = annual_inc + loan_amnt + grade + ; + run; + title1 'Research Question: What is the distribution of the loan amounts based on the purpose of the loan?' ; @@ -84,3 +102,9 @@ Follow Up: Same as the first question, might want to filter out through state in to determine factors of cost of living and debt owed since different states have different home costs. ; + +proc sgplot + data = loanstats + vbox loan_amnt / category purpose + ; +run;