brianstock / MixSIAR

A framework for Bayesian mixing models in R:
http://brianstock.github.io/MixSIAR/
90 stars 75 forks source link

Error when requesting model output with fixed effect #86

Open MaartenWynants opened 7 years ago

MaartenWynants commented 7 years ago

Hi,

I am running the model with XRF data, more specific I have 19 tracers. Furthermore I have 1 fixed effect in the mixture, the location of sampling in the lake. Lastly I have 7 sources and a conservative discriminant. When want to get the output of the model, there is no problem without a fixed effect. However, when I add the fixed effect it gives me following error when trying to get the output: Error: Casting formula contains variables not found in molten data: Var3, Var2, Var1 Note that my model still runs and that I get all the graphs as output, just not the summary text-file and diagnostics.

Regards, Maarten

MaartenWynants commented 7 years ago

Important note: When I try out the Palmyra example, it gives me the same error! Does this mean there is something wrong with my R version?