I have data of a Likert scale questionnaire regarding alcohol consumption and cigarette smoking. I want to look for a correlation between the 2 variables in R but I am a complete R newbie and don’t understand why it doesn’t work. The code I tried:
CrossTable(Do.you.consume.alcohol, Do.you.smoke.cigarettes , chisq = TRUE , expected = TRUE)
That’s the error message I get:
Error in CrossTable(Do.you.consume.alcohol, Do.you.smoke.cigarettes , :
object 'Do.you.consume.alcohol' not found.
Does anybody know why is the object not found?