MixSIAR icon indicating copy to clipboard operation
MixSIAR copied to clipboard

running mixSIAR if some sources have only 1 sample

Open BelindaCannell opened this issue 7 years ago • 2 comments

For some of my sources I only have 1 sample. When I draw the isospace plot many error messages are given, and the single sources are not located correctly on the isospace plot. Also the model does not run. So is there any way of being able to use mixSIAR with a mixture of some single sources and other sources with a small n?

BelindaCannell avatar Jan 09 '18 02:01 BelindaCannell

Hi Belinda,

MixSIAR wants to know something about the variability of the source data, since this influences the mixing process. You'll have to treat your source data as "means + SD + N", and tell the model to fix the source means at the values you have by inputting some arbitrary small SD and large N. In this case, do not use the multiplicative / process error because that constructs the mix variance from the source variance. Use "residual error only" option for the error structure.

brianstock avatar Mar 09 '18 06:03 brianstock

HI. Apologies for re-looking at this, but MixSIAR should really produce a useful error when people put in n=1 in the sources document. Just spent a very miserable half hour looking through someone's code (and opaque JAGS error) only to find that this was it.

andrewcparnell avatar Jun 14 '19 14:06 andrewcparnell