agrupa_nominal_filtra_small: agrupa_nominal_filtra_small

Description Usage Arguments Examples

View source: R/agrupa_nominal_filtra_small.R

Description

group values of nominal variables according to a target variable .

Usage

1
2
agrupa_nominal_filtra_small(tbla, target_name, variable_name, limite,
  symbol_to_split = "%-%", limite_grupo = 100)

Arguments

tbla

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

target_name

name if the target variable.

variable_name

name of the ordinal variable that you want to group.

limite

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

symbol_to_split

symbol to split values of variables

limite_grupo

min number for each group to be analized

Examples

1
2
3
set.seed(1)
tbla<-rbind(data.frame(grupo=rep(c('a','b','c','d','e'),100/5),valor=as.numeric(runif(100)>.5 )),data.frame(grupo=rep(c('c','d'),100/2),valor=as.numeric(runif(100)>.5 )))
agrupa_nominal_filtra_small(tbla, target_name='valor', variable_name='grupo',limite=0.05, symbol_to_split='%#%', limite_grupo=50)

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