I am at the stage of learning R, Having some data where I need to find strong association between demographic factor and loan defaulters.
Glimpse of data after merging dataset- account_id, loan_id, duration, status (A,B,C,D), district_id
My approach -
- Converting status in numeric
- Demographic correlation <- cor(data$district_id, data$status, method = " pearson")
result = 1.346045e-17 (don't know whether it creating any relationship, as per correction values exist in between -1 to 1)
Spearman method values = 0
kandemall = No output system keeps running
Please help me to get to know the strong relationship between demographic factor and loan defaulter.
Status Description :
'A' stands for contract finished, no problems
'B' stands for contract finished, loan not payed
'C' stands for running contract, OK thus-far
'D' stands for running contract, client in debt