Re: [R] Vector errors and missing values

2012-03-05 Thread jahughes81
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 r

Re: [R] Vector errors and missing values

2012-03-05 Thread Petr PIKAL
Hi > > Here is my code: > > > ##Centering predictors### > verbal.ability_C <- verbal.ability - mean(verbal.ability) > children_C <- children - mean(children) > age_C <- age - mean(age) > education_C <- education - mean(education) > work.from.home.frequency_C <- work.from.home.frequency

Re: [R] Vector errors and missing values

2012-03-02 Thread jahughes81
Here is my code: ##Centering predictors### verbal.ability_C <- verbal.ability - mean(verbal.ability) children_C <- children - mean(children) age_C <- age - mean(age) education_C <- education - mean(education) work.from.home.frequency_C <- work.from.home.frequency - mean(work.from.home.fre

Re: [R] Vector errors and missing values

2012-03-02 Thread Petr PIKAL
Hi > > Hi Petr! > > Thank you for responding to my post. > > I checked out all my variables in the way you suggested and they are all in > integer form, but here are many missing values in some of my vectors, > denoted with NA. > > So, they are in the correct form, I am just wondering if there

Re: [R] Vector errors and missing values

2012-03-02 Thread jahughes81
Hi Petr! Thank you for responding to my post. I checked out all my variables in the way you suggested and they are all in integer form, but here are many missing values in some of my vectors, denoted with NA. So, they are in the correct form, I am just wondering if there is something else I need

Re: [R] Vector errors and missing values

2012-03-02 Thread Petr PIKAL
Hi > > Hi, > > I am trying to run two Non-Gaussian regressions: logistic and probit. I am > receiving two different errors when I try to run these regressions and I am > not sure what they mean or how to fix my syntax. > > Here is the logistic regression error: > > Error in family$linkfun(mu

[R] Vector errors and missing values

2012-03-01 Thread jahughes81
Hi, I am trying to run two Non-Gaussian regressions: logistic and probit. I am receiving two different errors when I try to run these regressions and I am not sure what they mean or how to fix my syntax. Here is the logistic regression error: Error in family$linkfun(mustart) : Argument mu mus