CrumpLab / psyc3400

Website for Psyc 3400 Statistics @ Brooklyn College (Taught by Matt Crump)
15 stars 14 forks source link

Lab 8 ANOVA #23

Open FShpol opened 5 years ago

FShpol commented 5 years ago

I keep receiving the error message below when I try to input the following t-tests: comparison_df <- all_data %>% filter(Condition %in% c('Control','Reactivation_only')==TRUE)

t.test(Days_One_to_Seven_Number_of_Intrusions ~ Condition, comparison_df, var.equal=TRUE)

comparison_df <- all_data %>% filter(Condition %in% c('Control','Reactivation+Tetris')==TRUE)

t.test(Days_One_to_Seven_Number_of_Intrusions ~ Condition, comparison_df, var.equal=TRUE)

Error message: Error in t.test.formula(Days_One_to_Seven_Number_of_Intrusions ~ Condition, : grouping factor must have exactly 2 levels