Hi Petr,

Thank you so much for your help.

You're right, the issue was that I needed to center my predictors by adding
the code 'na.rm=T':

verbal.ability_C <- verbal.ability - mean(verbal.ability, na.rm=T)

That removed the NA values from being included in my centering and allowed
me to run the regressions.

Again, I really appreciate your help.

--
Jessica

--
View this message in context: 
http://r.789695.n4.nabble.com/Vector-errors-and-missing-values-tp4437306p4446027.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to