loop_performance_rpart: loop_performance_rpart

Description Usage Arguments Examples

View source: R/loop_performance_rpart.R

Description

bivariate analysis .

Usage

1
loop_performance_rpart(tbla, lista, target_name)

Arguments

tbla

table with data. It has to have the variables and the target variable.

lista

list of names of the variables that you want to analyze.

target-name

name of the target variable.

Examples

1
2
3
4
5
6
7
8
set.seed(1)
x1 = rnorm(1000)
x2 = rnorm(1000)
z = 1 + 2 \* x1 + 3 \* x2
pr = 1/(1+exp(-z))
y = rbinom(1000,1,pr)
tbla = data.frame(y=y,x1=x1,x2=x2)
loop_performance_rpart (tbla, lista=c('x1', 'x2'),target_name='y' )

GabyP/preparation4modeling documentation built on Sept. 24, 2020, 11:57 p.m.