search for: dftrain

Displaying 1 result from an estimated 1 matches for "dftrain".

2011 Oct 25
2
Logistic Regression - Variable Selection Methods With Prediction
...'Y' and 'N') and i have about 14 predictor variables. My goal is to compare different variable selection methods like Forward, Backward, All possible subsests. I am using misclassification rate to pick the winner method. This is what i have as of now, Reg <- glm (Graduation ~., DFtrain,family=binomial(link="logit")) step <- extractAIC(Reg, direction="forward") pred <- predict(Reg, DFtest,type="response") mis <- mean({pred > 0.5} != {DFtest[,"Graduation"] == "Y"}) This program actually works but I needed to check...