# NOT RUN {
#Simple example
covariates = c("education_primaria", "education_secundaria",
"age", "sex", "language")
if (is.numeric(sampleNP$vote_gen))
sampleNP$vote_gen = factor(sampleNP$vote_gen, c(0, 1), c('F', 'T'))
model_based(sampleNP, population, covariates,
"vote_gen", positive_label = 'T', algorithm = 'glmnet')
# }
Run the code above in your browser using DataLab