When estimating the posterior from a model with an interaction term containing a categorical variable without including that categorical variable as a main effect, the posterior function produces the following error: "Error in 1:(ncol(chains) - 2 - nGs) : argument of length 0"
The following code is a reproducible example with Xcat as the categorical variable. BF1a and BF1c produce the error.
When estimating the posterior from a model with an interaction term containing a categorical variable without including that categorical variable as a main effect, the posterior function produces the following error: "Error in 1:(ncol(chains) - 2 - nGs) : argument of length 0"
The following code is a reproducible example with Xcat as the categorical variable. BF1a and BF1c produce the error.
BayesFactor version 0.9.12-2