I am trying to implement a special case of generalized additive mixed model using R mgcv package without success and in need of advice.
Specifically, the model has mi