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