richarddmorey / BayesFactor

BayesFactor R package for Bayesian data analysis with common statistical models.
https://richarddmorey.github.io/BayesFactor/
132 stars 49 forks source link

Nonfactors are specified as random #71

Closed js1551 closed 8 years ago

js1551 commented 8 years ago

bf = anovaBF(R~Condition*Handedness + Subject, whichRandom = "Subject", data = master, whichModels = "withmain", iterations = 100000)

I'm trying to run this analysis, but I keep getting this error message:

Error in createDataTypes(formula, whichRandom, data, analysis = "anova") : Nonfactors are specified as random.

Any suggestions??

nicebread commented 8 years ago

The column "Subject" in your data frame must be defined as a factor (I guess it's a numeric variable at the moment).

richarddmorey commented 8 years ago

Closing this up.