[R] Vector errors and missing values

jahughes81 jessica.hughes at acl.psych.toronto.edu
Mon Mar 5 13:44:17 CET 2012


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.



More information about the R-help mailing list