Skip to main content
added 2 characters in body; edited title
Source Link
user88
user88

Indicator Variablesvariables and Backward Elimination (glm)backward elimination with GLM

I am running logistic regression using glmglm in R on data, that has some indicator variables to it. Two of those have multiple levels and have been rewritten as (#levels-1) new dummy predictors respectively. As for variable selection, I use step (backward variable selection based on AIC), which is where I struggle:

Even though all dummies of the initial indicator were kept or removed, I wonder what one would do, if a single dummy (i.e. one of a set of associated dummies) was eliminated during the variable selection? After all, this would mean that I lose the information encoded for the base-level (since it is "indicated" by 0s in all the other dummies).

Could someone tell me what to do if such a case occurred?

Thanks & Regards

Indicator Variables and Backward Elimination (glm)

I am running logistic regression using glm in R on data, that has some indicator variables to it. Two of those have multiple levels and have been rewritten as (#levels-1) new dummy predictors respectively. As for variable selection, I use step (backward variable selection based on AIC), which is where I struggle:

Even though all dummies of the initial indicator were kept or removed, I wonder what one would do, if a single dummy (i.e. one of a set of associated dummies) was eliminated during the variable selection? After all, this would mean that I lose the information encoded for the base-level (since it is "indicated" by 0s in all the other dummies).

Could someone tell me what to do if such a case occurred?

Thanks & Regards

Indicator variables and backward elimination with GLM

I am running logistic regression using glm in R on data, that has some indicator variables to it. Two of those have multiple levels and have been rewritten as (#levels-1) new dummy predictors respectively. As for variable selection, I use step (backward variable selection based on AIC), which is where I struggle:

Even though all dummies of the initial indicator were kept or removed, I wonder what one would do, if a single dummy (i.e. one of a set of associated dummies) was eliminated during the variable selection? After all, this would mean that I lose the information encoded for the base-level (since it is "indicated" by 0s in all the other dummies).

Could someone tell me what to do if such a case occurred?

Thanks & Regards

Source Link
sim
  • 133
  • 6

Indicator Variables and Backward Elimination (glm)

I am running logistic regression using glm in R on data, that has some indicator variables to it. Two of those have multiple levels and have been rewritten as (#levels-1) new dummy predictors respectively. As for variable selection, I use step (backward variable selection based on AIC), which is where I struggle:

Even though all dummies of the initial indicator were kept or removed, I wonder what one would do, if a single dummy (i.e. one of a set of associated dummies) was eliminated during the variable selection? After all, this would mean that I lose the information encoded for the base-level (since it is "indicated" by 0s in all the other dummies).

Could someone tell me what to do if such a case occurred?

Thanks & Regards