arboleje {dprep} | R Documentation |
Simulated example about predicting a bank's decision to give a loan to customer for buying a car.
data("arboleje")
A data frame with 25 observations on the following 7 variables.
Sexo
a factor indicaing the customer's gender with levels Hombre
Mujer
Familia
a numeric vector indicating the number of members in the family
CasaPropia
a factor with levels No
Si
AnosEmpleo
a numeric vector indicating the years of employment
Sueldo
a numeric vector indicating the monthly salary
StatusMarital
a factor with levels Casado
Divorciado
Soltero
Viudo
Prestamo
a factor indicating the bank's with levels No
Si
Originated by EDgar Acuna
data(arboleje) library(rpart) rpart(Prestamo~.,data=arboleje,method="class")