Learn R Programming

dprep (version 3.0.2)

arboleje: Predicting a bank's decision to give a loan for buying a car.

Description

Simulated example about predicting a bank's decision to give a loan to customer for buying a car.

Usage

data("arboleje")

Arguments

Format

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

Source

Originated by EDgar Acuna

Examples

Run this code
data(arboleje)
library(rpart)
rpart(Prestamo~.,data=arboleje,method="class")

Run the code above in your browser using DataLab