Description Usage Arguments Examples
View source: R/performace_bivariado_transf_log.R
group values of ordinal varibles according to a target variable .
1 2 | performance_bivariado_transf_log(tbla, variable_name, target_name,
limite_steps)
|
tbla |
table with data. It has to have the variable and the target variable. |
variable_name |
name of the variable that you want to analyze. |
target-name |
name of the target variable. |
1 2 3 4 5 6 7 8 9 10 11 | set.seed(1)
x1 = rnorm(1000)
x2 = rnorm(1000)
x3= ifelse(as.factor(x2>0.5)==T, 'A', 'B')
z = 1 + 2 \* x1 + 3 \* x2
pr = 1/(1+exp(-z))
y = rbinom(1000,1,pr)
tbla = data.frame(y=y,x1=x1,x2=x2, x3=x3)
tbla[ 1:10, 'x1']<-NA #generate NA
performance_bivariado_transf_log (tbla, variable_name='x1',target_name='y' )
performance_bivariado_transf_log (tbla, variable_name='x2',target_name='y' )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.