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

Description Usage Format Source Examples

Description

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

Usage

1
data("arboleje")

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

1
2
3
data(arboleje)
library(rpart)
rpart(Prestamo~.,data=arboleje,method="class")

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
n= 25 

node), split, n, loss, yval, (yprob)
      * denotes terminal node

1) root 25 10 Si (0.4000000 0.6000000)  
  2) Sueldo>=3275 7  2 No (0.7142857 0.2857143) *
  3) Sueldo< 3275 18  5 Si (0.2777778 0.7222222) *

dprep documentation built on May 29, 2017, 11:01 a.m.