My aim is to carry out a generalized linear model (glm) with 1 response variable and 13 explanatory variables.Unfortunately 3 out of the 10 explanatory variables contain NA values (2/3 of data set of this 3 variables are NA values). I realized that the "step" function does not work with NA values (https://stackoverflow.com/questions/11819472/why-does-the-number-of-rows-change-during-aic-in-r-how-to-ensure-that-this-does). Therfore my question: How can I proceed to automatically improve my glm without eliminating my sites with NA values?

This question has been duplicated (I do not understand why - it seems as if sbd migrated it): R Linear model step NA values


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.