I have created a survey for a project. Survey participants responded using a Likert Scale 0-10. This is a before and after scenario. Data was cleaned to remove incomplete responses. I have 1135 paired responses remaining. Data shows numerical. I used the t.test(Q15_2~Q15_3, paired = TRUE) to run my test.
Error in t.test.formula(Q15_2 ~ Q15_3, paired = T) : grouping factor must have exactly 2 levels
Again...Data has been reviewed a dozen times. There are equal before and after responses. This does need to be a paired t-test so I am purposefully using the ~. I can get it to work just fine in excel, but I always like to double check my answers by running them in Excel and R to be sure they are correct. Any input would be welcome!