loop_performance_logistica: loop_performance_logistica

Description Usage Arguments Examples

View source: R/loop_performance_logistica.R

Description

bivariate analysis .

Usage

1
2
loop_performance_logistica(tbla, lista, target_name, flag_numerica = 0,
  limite_categ = 100, limite_steps = 500)

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.

limite_categ

max number of categories of the variable to be considered.

limite_steps

max number of steps for the stepAIC.

target-name

name of the target variable.

Examples

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

GabyP/categorizaOrdinales documentation built on Sept. 21, 2020, 1:42 p.m.