Hello!
I am working with a stepwise model with caret package
fitControl <- trainControl(
method = "boot",
number = 100)
step.model2carret <- train(ScoreF2 ~ Country + Dem3_PregfactorHCV + ageCutFHVC + employ1factor + studylevel1factor + Maritalstatus1factor + modevie1factor + origin1factor +
sexualorientation1factor + alcohol1factor + cigarret1factor + cocaine1factor + viagra1factor + otherdrugs1factor + osexestimulants1factor + CVdisease1factor + diabetes1factor +
depression1factor + psyquiatricdiseasefactor1 + actualdepression1factor + anhedonia1factor + BACTRIM1factor + antidepressive1factor + anticholesterol1factor + VHB1factor +
HIV1factor + HCVtrans1factor + followupHCVfactor + yearsdgHCVcat, data = completedData_F2,
method = "lmStepAIC",
trControl = fitControl,
verbose = FALSE)
but when I obtain the results, it doesn't give me a shorter model with less variables, which I need for doing a mixed linear model.
Can you help me please?
thank you