aplica_agrupa_ordinal: aplica_agrupa_ordinal

Description Usage Arguments Examples

View source: R/aplica_agrupa_ordinal.R

Description

apply agrupa_ordinal to a list of variables

Usage

1
2
aplica_agrupa_ordinal(train_tbl, num_cols, target_name, num_ini_groups,
  limite)

Arguments

train_tbl

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

num_cols

name of the numeric variables that you want to group.

target_name

name of the target variable.

num_ini_groups

probability of not belonging to the same group. Used for the hypergeometric test.

lim_categ

probability of not belonging to the same group. Used for the hypergeometric test.

Examples

1
2
3
4
5
tbla<-data.frame(
grupo1=rep(1:5,100/5),
valor=c( as.numeric(rep(runif(90), 1)>.5) , rep(0, 5), rep(1, 5)) ,
grupo2=rep(c(11,22,33,33,33),100/5))
aplica_agrupa_ordinal(train_tbl=tbla, num_cols=c('grupo1', 'grupo2'), target_name='valor', num_ini_groups=20, limite=0.05)

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