Displaying 1 result from an estimated 1 matches for "coviarate2".
Did you mean:
  covariate2
  
2010 Jun 04
2
using string as variable name in model
...zCANTAB_sqrt_SWM_Total
13  13                  zSS_WJ_PC 
14  14                 zSS_WJ_CALC
15  15                   zSS_WJ_LW
16  16                   zSS_WJ_AP
17  17                   zSS_WJ_MF
What I'm trying to do is 
varnames[1,2] -> outcome
			
lm(outcome ~ income + covariate1 + coviarate2, data=my.data) -> model
I get the following error message:
"Error in model.frame.default(formula = outcome ~ Hollings_Enroll + Child_sex +  : 
  variable lengths differ (found for 'Hollings_Enroll')"
But when I run the model:
lm(zCANTAB_log_IED_totaltrials ~ income + covariat...