mmrm for longitudinal field experiment in the domain of energy and water consumption #355
-
Dear mmrm community, I am a PhD researcher (psychologist) conducting longitudinal field experiments in the domain of energy and water consumption using digital behavioral interventions. Thus, my application area would go beyond clinical trials, however, the experimental setup is quite similar. During my search to adequately model and analyze my data, I saw the best fit to the mmrm package. Now I would like to ask the mmrm community, whether you see fit given the setup of my experiment. This would be of great benefit as I would like to prerigster my experiment. In my experiment, I will have a daily baseline measurement of 4 weeks on the variables water, heat and electricity consumption. Afterward, I will randomly allocate around 400 participants (living in similar apartments with smart meters) to 4 conditions and do a randomization check (I expect no significant difference between the dependent and control variables). Then the experiment follows for 12 weeks. Participants in the 3 experimental groups are using a mobile application with different behavioral interventions and the goal is to investigate their effectiveness compared to the control. As of today, I thought to model it as follows: outcome (water / heat / electricity consumption), fixed effects (1. condition, 2. time in days, 3. interaction between condition and time, 4. engagement interactions with the app, 5. interaction between engagement and condition (as it is expected that engagement might be higher in some conditions), 6. presence in the apartment on a given day (if consumption on a given day falls below a cut-off value), 7. control variable gender, 8. control variable age), random effect (at individual or group level). Now turning to my questions:
Thanks for your efforts in creating the mmrm package and looking forward to hearing from you! Best wishes, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks @vincentvincevin for reaching out! To your questions specifically:
Just would like to highlight that |
Beta Was this translation helpful? Give feedback.
Thanks @vincentvincevin for reaching out!
To your questions specifically:
mmrm
package assumes normally distributed errors and thus observations. However you could try to log-transform your observations to try bringing it to the real line and also deal with the skewness. However, withglmmTMB
you could directly use a gamma response distribution, see https://cran.r-project.org/web/packages/glmmTMB/index.html