tabla_estimadores: tabla_estimadores

Description Usage Arguments Examples

View source: R/tabla_estimadores.R

Description

creates table of the summary of a model with all the levels and the importance of the variables .

Usage

1

Arguments

lr

model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x1 = rnorm(1000)
x2 = rnorm(1000)
x3= ifelse(as.factor(x2>0.5)==T, 'A', 'B')
x4= ifelse(as.factor(x2>0.7)==T, 'C', 'D')
z = 1 + 2 * x1 + 3 * x2+2*x4
pr = 1/(1+exp(-z))
y = rbinom(1000,1,pr)
tbla = data.frame(y=y,x1=x1,x2=x2, x3=x3, x4=x4)
tbla<-redefine_level_0( df_agrupada_y=tbla ,variables=c('x3',  'x4') ,nombre_target='y')
filtros_train= (tbla$random=runif(nrow(tbla)))<0.5
lr <- glm(f, tbla[ filtros_train, ], family = 'binomial')
tabla_estimadores(lr)

GabyP/preparation4modeling documentation built on Sept. 24, 2020, 11:57 p.m.