response ~ s(distance, by = treatment) +
(treatment|individual) +
(distance|individual:trial)
I have very little experience with gamms in brms so I am not at all sure about the correct specification of the group level terms here. Maybe @ucfagls can correct me here?
I think that once you account for the exponential decay of the angle differences this may also take care of the skewness. In other words, when you try this, start with Gaussian ;)
Okay, can you please help me by breaking down the reasoning for this specific structure and explain index-type and contrast-type models? Or alternatively provide some resources to help me understand? Iāve never heard of index vs contrast type.
Maybe you can try a āunimodalā arbitrary function. This would get the main peak, and probably not the others, although as stated in the unimodal approac here
it could also get the other small modes.
(Summary: instead of using a parametric curve as a gaussian or beta, you bin the continuous curve in n+m bins with the mode at m, and then you create a curve that adds n times a half gaussian, and the substracts m times a half gaussian. Of course that you only fix n+m, and you let STAN inder how much is n.)