Stan code for a model with trend

Model with trend as random effect