Hostname: page-component-89b8bd64d-r6c6k Total loading time: 0 Render date: 2026-05-06T09:28:19.546Z Has data issue: false hasContentIssue false

A Lasso and a Regression Tree Mixed-Effect Model with Random Effects for the Level, the Residual Variance, and the Autocorrelation

Published online by Cambridge University Press:  01 January 2025

Steffen Nestler*
Affiliation:
University of Münster, Institut für Psychologie
Sarah Humberg
Affiliation:
University of Münster, Institut für Psychologie
*
Correspondence should be made to Steffen Nestler, University of Münster, Institut für Psychologie, Fliednerstr. 21, 48149 Münster, Germany. Email: steffen.nestler@uni-muenster.de
Rights & Permissions [Opens in a new window]

Abstract

Research in psychology is experiencing a rapid increase in the availability of intensive longitudinal data. To use such data for predicting feelings, beliefs, and behavior, recent methodological work suggested combinations of the longitudinal mixed-effect model with Lasso regression or with regression trees. The present article adds to this literature by suggesting an extension of these models that—in addition to a random effect for the mean level—also includes a random effect for the within-subject variance and a random effect for the autocorrelation. After introducing the extended mixed-effect location scale (E-MELS), the extended mixed-effect location-scale Lasso model (Lasso E-MELS), and the extended mixed-effect location-scale tree model (E-MELS trees), we show how its parameters can be estimated using a marginal maximum likelihood approach. Using real and simulated example data, we illustrate how to use E-MELS, Lasso E-MELS, and E-MELS trees for building prediction models to forecast individuals’ daily nervousness. The article is accompanied by an R package (called mels) and functions that support users in the application of the suggested models.

Information

Type
Theory and Methods
Creative Commons
Creative Common License - CCCreative Common License - BY
This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Copyright
Copyright © The Author(s) 2021
Figure 0

Figure. 1 A simple tree (see text for explanations). N = neuroticism, A = Agreeableness.

Figure 1

Table 1 Results for the real-data example across four models.

Figure 2

Table 2 Results concerning the mean squared error (MSE, standard errors in parentheses) and the standard deviation of the forecast error (σ^F\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\hat{\sigma }_F$$\end{document}) of a one-step-ahead forecast across the six models for the real-data example.

Figure 3

Table 3 Results for the simulated-data example across four models.

Figure 4

Table 4 Results concerning the mean squared error (MSE, standard errors in parentheses) and the standard deviation of the forecast error (σ^F\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\hat{\sigma }_F$$\end{document}) of a one-step-ahead forecast across the six models for the simulated-data example.

Figure 5

Figure. 2 Results for the AIC/BIC of the E-MELS Lasso for the training data as a function of the regularization parameter λ\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\uplambda $$\end{document}.

Figure 6

Figure. 3 Estimated E-MELS tree for the simulated training data.

Figure 7

Table 5 Average parameter estimates depending on number of measurements (T).

Figure 8

Table 6 Mean squared error (MSE) of prediction and standard deviation of the forecast error (σ^F\documentclass[12pt]{minimal}\usepackage{amsmath}\usepackage{wasysym}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{amsbsy}\usepackage{mathrsfs}\usepackage{upgreek}\setlength{\oddsidemargin}{-69pt}\begin{document}$$\hat{\sigma }_F$$\end{document}) for a one-step forecast depending on the model and the number of training time points (T).

Figure 9

Figure. 4 Estimated E-MELS tree for the training data with abbreviated variable names to improve readability (M = person mean, GM = person mean centered). na = negative affect, se = self-esteem, creative = creativeness, friendly = friendliness, organized = organized, temp = temperature.