Description Usage Arguments Examples
View source: R/agrupa_nominal_filtra_small.R
group values of nominal variables according to a target variable .
1 2 | agrupa_nominal_filtra_small(tbla, target_name, variable_name, limite,
symbol_to_split = "%-%", limite_grupo = 100)
|
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.