agrupa_nominal: agrupa_nominal

Description Usage Arguments Examples

View source: R/agrupa_nominal.R

Description

group values of nominal variables according to a target variable .

Usage

1
agrupa_nominal(tbla, target_name, variable_name, limite, symbol_to_split)

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

Examples

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

GabyP/agrupaVariables documentation built on Sept. 25, 2020, 8:04 p.m.