Learn R Programming

dprep (version 3.0.2)

arboleje1: 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. The feature "Marital Status" has been codified using three dummy variables.

Usage

data("arboleje1")

Arguments

Format

A data frame with 25 observations on the following 9 variables.
Sexo
a factor with levels Hombre Mujer
Familia
a numeric vector
CasaPropia
a factor with levels No Si
AnosEmpleo
a numeric vector
Sueldo
a numeric vector
Prestamo
a factor with levels No Si
x31
a numeric vector
x32
a numeric vector
x33
a numeric vector

Source

Originated by Edgar Acuna

Examples

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

Run the code above in your browser using DataLab