SciELO - Scientific Electronic Library Online

 
vol.39 número2Construcción, fiabilidad y evidencias de validez de una escala para medir el uso de las nuevas tecnologías por los psicólogos españoles índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados

Revista

Articulo

Indicadores

Links relacionados

  • En proceso de indezaciónCitado por Google
  • No hay articulos similaresSimilares en SciELO
  • En proceso de indezaciónSimilares en Google

Compartir


Anales de Psicología

versión On-line ISSN 1695-2294versión impresa ISSN 0212-9728

Anal. Psicol. vol.39 no.2 Murcia may./sep. 2023  Epub 04-Mar-2024

https://dx.doi.org/10.6018/analesps.527421 

Methodology

Robustness of Generalized Linear Mixed Models for Split-Plot designs with binary data

Robustez de los Modelos Lineales Mixtos Generalizados para diseños Split-Plot con datos binarios

Roser Bono1  2  *  , Rafael Alarcón3  , Jaume Arnau1  , F Javier García-Castro4  , Maria J Blanca3 

1Department of Social Psychology and Quantitative Psychology. University of Barcelona. Barcelona (Spain)

2Institute of Neurosciences. University of Barcelona. Barcelona (Spain)

3Department of Psychobiology and Behavioral Sciences Methods. University of Malaga. Malaga (Spain)

4Department of Psychology, Universidad Loyola Andalucía. Seville (Spain)

Abstract:

This paper examined the robustness of the generalized linear mixed model (GLMM). The GLMM estimates fixed and random effects, and it is especially useful when the dependent variable is binary. It is also useful when the dependent variable involves repeated measures, since it can model correlation. The present study used Monte Carlo simulation to analyze the empirical Type I error rates of GLMMs in split-plot designs. The variables manipulated were sample size, group size, number of repeated measures, and correlation between repeated measures. Extreme conditions were also considered, including small samples, unbalanced groups, and different correlation in each group (pairing between group size and correlation between repeated measures). For balanced groups, the results showed that the group effect was robust under all conditions, while for unbalanced groups the effect tended to be conservative with positive pairing and liberal with negative pairing. Regarding time and interaction effects, the results showed, for both balanced and unbalanced groups, that: (a) The test was robust with low correlation (.2), but conservative for medium values of correlation (.4 and .6), and (b) the test tended to be conservative for positive and negative pairing, especially the latter.

Keywords: Generalized linear mixed models; Binary data; Monte Carlo simulation; Type I error rate

Resumen:

Este artículo examina la robustez del modelo lineal mixto generalizado (GLMM, por sus siglas en inglés). El GLMM estima efectos fijos y efectos aleatorios y es especialmente útil cuando la variable dependiente es binaria. También es útil cuando la variable dependiente es de medidas repetidas, ya que puede modelar la correlación. El presente estudio utilizó la simulación de Monte Carlo a fin de analizar las tasas de error de Tipo I empíricas de los GLMM en diseños split-plot. Las variables manipuladas fueron el tamaño de muestra, el tamaño de grupo, el número de medidas repetidas y la correlación entre las medidas repetidas. También se consideraron condiciones extremas, tales como muestras pequeñas, grupos no balanceados y diferente correlación en cada grupo (emparejamiento entre tamaño de grupo y correlación entre medidas repetidas). Para grupos balanceados, los resultados mostraron que el efecto grupo era robusto en todas las condiciones, mientras que para grupos no balanceados el efecto tendía a ser conservador con emparejamiento positivo y liberal con emparejamiento negativo. Con respecto a los efectos tiempo e interacción, los resultados mostraron, tanto para grupos balanceados como para no balanceados, que: (a) la prueba fue robusta con baja correlación (.2), pero conservadora para valores medios de correlación (.4 y .6), y (b) la prueba tendía a ser conservadora para emparejamiento positivo y negativo, especialmente en este último.

Palabras clave: Modelos lineales mixtos generalizados; Datos binarios; Simulación Monte Carlo; Tasa de error Tipo I

Introduction

Scientific researchers are faced with ever more sophisticated and innovative data analysis strategies. A good example of this is the generalized linear mixed model (GLMM), a flexible analytical strategy that has evolved from other simpler mathematical models and which has been increasingly used in recent decades. The general linear model (GLM) is the most commonly used approach in the health and social sciences (Blanca et al., 2018), where researchers often perform regression analysis, analysis of variance, and analysis of covariance. These tests require the fulfillment of a series of assumptions such as a quantitative response variable, normally distributed data, homogeneity of variance, and independence of errors, assumptions that are not always satisfied with real data. The linear mixed model (LMM) is an extension of the GLM that allows both fixed and random effects, and it is particularly useful when data are not independent (e.g., hierarchical data, repeated measures) and homogeneity of variance is not required; robust procedures for dealing with non-normality when using this model have also been developed (Arnau et al., 2012, 2013; Livacic-Rojas et al., 2010). Another extension of the GLM is the generalized linear model (GLIM), which is useful for non-normally distributed data (e.g., binary, multinomial, ordinal, count, etc.) and which fits data with an exponential family distribution through the use of non-linear link functions. Finally, the GLMM offers a more flexible approach to the analysis of data with a non-normal distribution (Bolker et al., 2009; Breslow & Clayton, 1993). The GLMM is a combination of the LMM, which includes random effects, and the GLIM, which uses different link functions that transform the expected value and the linear predictor to the same scale. In summary, each of the aforementioned models has different purposes and is suitable for specific types of data.

Empirical evidence shows that in the fields of health, education, and social science it is very common for data to be non-normally distributed (Arnau et al., 2013; Arnau et al., 2014a, 2014b; Bauer & Sterba, 2011; Blanca et al., 2013; Bono et al., 2017; Lei & Lomax, 2005; Micceri, 1989), or for there to be non-independence of observations due to nested sampling or repeated measures (Bandera & Pérez, 2018; Casals et al., 2014; Coupé, 2018; Johnson et al., 2015; Thiele & Markusen, 2012). These situations, which are very frequent in applied research, occur when repeated measurements are obtained from the same subjects (Baayen et al., 2017; Dang et al., 2008; Noh et al., 2012; Thiele & Markusen, 2012), as in the case of longitudinal studies (Bandera & Pérez, 2018; Cho & Goodwin, 2017; Fieberg et al., 2010; Koh et al., 2019; Mowen & Culhane, 2017), or when data are hierarchically structured (Casals et al., 2014; Elosua & De Boeck, 2020; Moscatelli et al., 2012; Mowen & Culhane, 2017). The fact that these situations are so common is a primary reason for using the GLMM in applied research; additionally, it is one of the alternatives to analysis of variance for repeated measures designs when the dependent variable is categorical. Use of the GLMM for multilevel models and repeated measures are further discussed in Stroup (2013).

With non-normal distributions the GLMM uses different link functions. The most frequently used link functions are logarithmic (the linear predictor is the natural logarithm of the expected value), logit (the linear predictor is the inverse of the logistic distribution function of the expected value), and probit (the linear predictor is the inverse of the standardized normal cumulative distribution function of the expected value). The most common estimation method in GLMM is the maximum likelihood (ML) procedure, especially in the form of variants such as restricted maximum likelihood (REML), restricted subject-specific pseudo-likelihood (RSPL), and penalized quasi-likelihood (PQL). Other estimation methods are the Gauss-Hermite quadrature (GHQ), the Laplace approximation (which is a particular case of the GHQ), hierarchical likelihood (HL), and Bayesian methods based on the Markov Chain Monte Carlo (MCMC) technique. The algorithm used by the GLMM allows calculation of the best linear unbiased estimator (BLUE) of the fixed effects and the best linear unbiased predictor (BLUP) of the random effects, which shows the lowest root mean square error among all the unbiased linear predictors (Bandera & Pérez, 2018; Searle et al., 1992).

These estimation methods use very complex calculation procedures that require increasingly sophisticated statistical software, such as proc glimmix in SAS, which generalizes two other procedures: proc genmod, by including error terms that are not normally distributed, and proc mixed, by considering random effects in the model (SAS Institute, 2013). Proc glimmix is a powerful technique for modeling correlated binary outcomes (Dang et al., 2008). By default, SAS uses the RSPL approach for parameter estimation (Wolfinger & O'Connell, 1993). The RSPL approach estimates random effects models based on residual probability, and it is well suited to situations where what is of interest is the individual response rather than the population mean or marginal model.

The incorporation of newer procedures into the main statistical software packages (SAS, R, STATA, and IBM SPSS) has encouraged the use of GLMMs in a wide variety of disciplines, including biology (Bandera & Pérez, 2018; Thiele & Markussen, 2012), ecology and environmental sciences (Bolker et al., 2009; Johnson et al., 2015; Kain et al., 2015; Smith et al., 2020), medicine (Brown & Prescott, 2006; Casals et al., 2014; Cnnan et al., 1998; Platt et al., 1999; Skrondal & Rabe-Hesketh, 2003; Witte et al., 2000), psychophysics (Moscatelli & Lacquaniti, 2011; Moscatelli et al., 2011; Moscatelli et al., 2012), psycholinguistics (Baayen et al., 2008; Coupé, 2018; Elosua & De Boeck, 2020; Quené & van den Bergh, 2008), and psychology (Aiken et al., 2015; Bono et al., 2021; Cho & Goodwin, 2017), among others.

Focusing on the field of psychology, Bono et al. (2021) observed a growing trend in the use of these analytic models, with the number of GLMM-related articles published in 2018 (n = 88) being more than double the figure for 2014 (n = 39). Bono et al. (2021) also carried out a systematic review of 80 empirical articles indexed in JCR journals during 2018, and which included a total of 118 different GLMM analyses. The results showed that the most common application of GLMMs involved the use of repeated measures designs (61.1 %), with two and three repeated measures (33.33 % and 25 % of analyses, respectively), and a sample of fewer than 500 participants (57.6 %). Regarding the characteristics of response variables, the most frequent among the studies analyzed were variables with two response categories (87.7 %). The most common distribution used was the binomial distribution (19.5 %), although in the majority of studies the distribution was not specified (52.5 %). Regarding software, SAS was the most widely used (36.4 %), with glimmix being the most common procedure (32.6 %).

More generally, the GLMM has most frequently been applied in longitudinal studies or repeated measures designs with binary response variables (Bakbergenuly & Kulinskaya, 2018; Cho & Goodwin, 2017; Gawarammana & Sooriyarachchi, 2017; Zhang et al., 2011), with count response variables (Coupé, 2018; Huang et al., 2016; Kruppa & Hothorn, 2021; Sun et al., 2019; Zhang et al., 2012), with multinomial outcomes (Jiang & Oleson, 2011) or, to a lesser extent, with continuous response variables (Lo & Andrews, 2015). It is worth noting that binary repeated measures are a common occurrence in biology, medicine, psychology, and sociology, as well as in many other practical fields (Gawarammana & Sooriyarachchi, 2017). These repeated measures are often related to each other, and it is common practice to use a first-order autoregressive covariance matrix, AR(1), to describe this serial dependence. Although the GLMM can model serial dependence between repeated binary responses, its use has not been widespread. Cho et al. (2018) show examples in the literature with binary time series and illustrate the GLMM AR(1) using empirical data.

Although, as we have said, GLMMs are now increasingly used by researchers in many fields, the robustness of these models has not been studied to the same extent as is the case for the LMM (e.g., Arnau et al., 2012; Jacqmin-Gadda et al., 2007; Kowalchuk et al., 2004; Vallejo et al., 2008). Indeed, simulation studies on the robustness of GLMMs with repeated measures and binary data are still very scarce. For data of this kind, Fang and Louchin (2013) found that GLMMs hold Type I error rates better than does the GLM, while Gawarammana and Sooriyarachchi (2017) concluded that the GLMM was satisfactory with respect to Type I error for sample sizes above 20.

A further issue to consider is that the results of simulation studies may be of little use to applied researchers in the psychological field, because the manipulated variables and their values (e.g., sample size, number of groups, number of repeated measures, correlation values, etc.) usually vary from one study to the next and are unlikely to have been chosen based on research practice; consequently, the results may not be directly applicable by researchers in this field. In addition, a standard criterion has not been used when assessing robustness, leading to different interpretations of the Type I error rate (Blanca et al., 2017, 2018). In this respect, the robustness of the GLMM has generally been interpreted in terms of how close or far the empirical alpha value obtained is from the nominal alpha value (Barker et al., 2017; Gawarammana & Sooriyarachchi, 2017; Zhang et al., 2012).

In this paper we report a simulation study conducted with the aim of providing empirical evidence on robustness (in terms of Type I error rates) of the GLMM in split-plot designs with binary response variables. To this end, we systematically manipulated a broad set of variables and range of values, based on research practice. The results of the study should help to inform the application of these models in the field of psychological or related research.

Method

A Monte Carlo simulation study was performed using the IML (interactive matrix language) module and proc glimmix of SAS 9.4 (SAS Institute, 2016). The aim was to analyze empirical Type I error rates of the GLMM in split-plot designs with binary response variables and a binomial distribution, involving two groups, two and three repeated measures, and a first-order autoregressive covariance matrix, AR(1).

Procedure

A series of macros was created that allowed generation of the data, estimation of the model, and the inference of fixed effects (adjustment by proc glimmix of SAS). These macros are available upon request from the corresponding author. Longitudinal binary data were generated with the RandMVBinary function (SAS/IML), developed by Wicklin (2013) and based on the algorithm of Emrich and Piedmonte (1991). This function generates multivariate binary variables with a given set of expected values and a specified correlation structure.

The following variables were manipulated:

  1. Total sample size. Here we considered very small and small (N = 24, 36, 48, 60, 72, 84, and 96), moderate (N = 108, 156, 204, 252, and 300), and large (N = 348, 396, 444, and 492) sample sizes. Sample sizes less than 500 were used because they are very frequent in the field of psychology (Bono et al., 2021).

  2. Coefficient of group size variation (Δn), which represents the amount of inequality in group sample size (Lix & Hinds, 2004). Following Blanca et al. (2018), different degrees of variation were considered and were grouped as null, low, medium, and high (0, .16, .33, and .50, respectively). For each N value, equal group sizes (balanced groups) and different group sizes (unbalanced groups) were considered. With balanced groups, the group sizes ranged from 12 to 246 (Tables 1-5), while with unbalanced groups the group sizes ranged from 10 to 369 (Tables 7-12).

  3. Within-subject levels (K). The repeated measures were K = 2 and K = 3. According to Bono et al. (2021), these are the most commonly used in psychology (58.33 % of studies).

  4. Correlation (Φ1) between repeated measures. The correlations with the AR(1) covariance structure were low (Φ1 = .2), medium (Φ1 = .4 and .6), and high (Φ1 = .8). The same correlation was established in each group. Following the simulation study of Bell and Grunwald (2011), correlations of Φ1 = .4 and .8 were used. We also considered low and medium correlations (Φ1 = .2 and Φ1 = .6).

  5. Pairing of group size with the correlation between repeated measures (Φ1 = .2 and .8). A different correlation was established in each group. Pairing was null with balanced groups. With unbalanced groups, the pairing was positive when the largest group size was associated with the highest correlation and negative when the largest group size was associated with the lowest correlation.

Table 1: Empirical Type I error rates (in percentages) for the group effect in balanced groups with K = 2. 

Table 2: Empirical Type I error rates (in percentages) for the time effect in balanced groups with K = 2. 

Note:In italics = conservative.

Table 3: Empirical Type I error rates (in percentages) for the interaction effect in balanced groups with K = 2. 

Note:In italics = conservative.

Table 4: Empirical Type I error rates (in percentages) for the group effect in balanced groups with K = 3. 

Table 5: Empirical Type I error rates (in percentages) for the time effect in balanced groups with K = 3. 

Note:In italics = conservative.

Table 6: Empirical Type I error rates (in percentages) for the interaction effect in balanced groups with K = 3. 

Note:In italics = conservative.

Table 7: Empirical Type I error rates (in percentages) for the group effect in unbalanced groups with K = 2. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in ital-ics = conservative; in bold = liberal.

Table 8: Empirical Type I error rates (in percentages) for the time effect in unbalanced groups with K = 2. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in italics = conservative.

Table 9: Empirical Type I error rates (in percentages) for the interaction effect in unbalanced groups with K = 2. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in ital-ics = conservative.

Table 10: Empirical Type I error rates (in percentages) for the group effect in unbalanced groups with K = 3. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in ital-ics = conservative; in bold = liberal.

Table 11: Empirical Type I error rates (in percentages) for the time effect in unbalanced groups with K = 3. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in ital-ics = conservative; in bold = liberal.

Table 12: Empirical Type I error rates (in percentages) for the interaction effect in unbalanced groups with K = 3. 

Note:Δn = coefficient of group size variation; null pairing: same correlation in the two groups; positive pairing: correlation .2 for n1 and correlation .8 for n2; negative pairing: correlation .8 for n1 and correlation .2 for n2; in ital-ics = conservative.

Five thousand replications of each combination of the above variables were performed at a significance level of .05.

Once the data had been generated, the GLMM was applied using proc glimmix. The classification variables were subject, group, and time. The fixed effects of the model were group, time, and interaction (group x time). The RSPL approach was used because its focus is the individual response. A binomial distribution was fitted with the logit link function, which is widely used for binary responses (Malik et al., 2020). For the adjustment of degrees of freedom, we used the Kenward-Roger approximation (Kenward & Roger, 2009), specifically the improved (KR2) method in SAS. This approach uses a less biased precision estimator and is recommended when analyzing repeated measures data (Stroup et al., 2018). This correction further reduces the precision estimator bias for the fixed and random effects under nonlinear covariance structures. Finally, the random effects were intercept and the slope over time. For the time variable, the AR(1) covariance structure was fitted. This correlation structure is close to an autoregressive structure, which is usually expected in repeated measures data (Gawarammana & Sooriyarachchi, 2017; Dang et al., 2008; Liu et al., 2012).

Data analysis

Robustness was evaluated by means of Bradley’s (1978) criterion, according to which a test is considered robust when the empirical Type I error rate is between .025 and .075 for a nominal alpha level of .05. When the empirical Type I error rate is above the upper limit, the test is considered liberal, and when it is below the lower limit it is considered conservative. The effects of the group factor, time factor, and interaction factor (group x time) were analyzed for each combination of manipulated variables.

Results

Balanced groups

In balanced groups, with K = 2 and K = 3, the group effect was robust in all conditions (Tables 1 and 4), including when the groups had different correlation values between repeated measures (null pairing between correlation and group size).

For K = 2, time and interaction effects were robust with correlation of .2, but the results became increasingly conservative as the correlation increased (Tables 2 and 3). They were also generally robust with null pairing.

For K = 3, time and interaction effects were robust with correlation of .2 and .8, while with correlation of .4 and .6 the results were conservative in the majority of conditions (Tables 5 and 6). They were also conservative with null pairing between correlation and group size in the majority of conditions.

Unbalanced groups

In unbalanced groups, for K = 2 and null pairing the group effect was robust in almost all conditions (Table 7), except with a small sample size (N = 24), where it can become conservative. For positive pairing between group size and correlation the test tended to be conservative with small sample sizes, whereas for negative pairing it tended to be liberal when inequality of group sample size was high in moderate and large sample sizes. For K = 3, it was conservative with positive pairing and liberal for negative pairing (Table 10).

For K = 2, time and interaction effects were robust with correlation of .2. However, the effects were increasingly conservative as the correlation increased (Tables 8 and 9), especially with correlation of .6 and .8. They were also conservative with both positive and negative pairing between group size and correlation.

For K = 3, time and interaction effects were robust with correlation .2 and .8, although with correlation of .8 and very small samples they were conservative. Results were generally conservative with correlation of .4 and .6 (Tables 11 and 12). They also tended to be conservative for positive pairing between group size and correlation as the sample size increased (from N = 96), and for negative pairing in all conditions.

Discussion

The aim of this study was to examine the empirical Type I error rates associated with the use of GLMMs under the most common conditions found in research in psychology (sample sizes less than 500, two groups, two and three repeated measures, and binary data). The RSPL approach in proc glimmix was used because its focus is on individual responses. In view of the fact that longitudinal data are normally correlated, the AR(1) covariance structure was fitted, and because the simulated samples were smaller than 500 we used the improved Kenward-Roger approach.

The results of this study provide researchers with useful information about the performance of these models, especially under extreme conditions (e.g., small samples, unbalanced groups, different correlation between repeated measures in each group). The most important conclusions in split-plot designs are:

  1. For the group effect and balanced groups, the GLMM was always robust, including when the correlation between repeated measures of each group was different.

  2. For the group effect and unbalanced groups, the GLMM can be (a) conservative when pairing between group size and the correlation between repeated measures is positive, and (b) liberal when this pairing is negative. With negative pairing the test became systematically more liberal as the inequality of group sample size increased.

  3. For the time and interaction effects, the empirical Type I error rates of the GLMM depend on the correlation between repeated measures, the pairing between group size and correlation, the inequality of group sample sizes, and the number of repeated measures. Specifically:

    1. The GLMM was robust with low correlation between repeated measures (.2) for all conditions studied.

    2. When correlations between repeated measures were equal in the groups, the GLMM was generally conservative for medium values of correlations (.4 and .6). However, for high values (.8) it was only conservative with two repeated measures.

    3. When correlations between repeated measures were different in the groups, the GLMM was generally conservative for both positive and negative pairing in unbalanced designs. It was also conservative for three repeated measures and null pairing in balanced designs.

    4. As the inequality of group sample sizes increased, the GLMM was systematically more conservative for negative pairing.

For time and interaction effects, the GLMM analyzed in this study is generally robust with low correlation between repeated measures. However, with medium correlation it tends to be conservative, and researchers would therefore need to exercise caution before accepting the null hypothesis based on their results. We also found that the test is robust with K = 3 when the correlation between measures is .8. It is also important to note that for the group effect the test may become very liberal in the case of negative pairing between group size and correlation, and hence any significant differences between groups would need to be interpreted with care.

Dang et al. (2008) found that robustness of the GLMM in terms of power estimates depends on the within-subject correlation of the binary outcomes. Specifically, if the random effects remain the same but the within-subject correlations increase, the estimated power decreases. Although other simulation studies have examined the robustness of the GLMM with binary responses (e.g., Fang & Louchin, 2013; Gawarammana & Sooriyarachchi, 2017), their results cannot be compared with our findings here as the variables manipulated and study objectives were different.

Gawarammana and Sooriyarachchi (2017) showed that with three repeated measures, a binary response variable, the logit link function, and quadrature estimation, proc glimmix yielded satisfactory results with respect to Type I error for sample sizes above 20. Here we used proc glimmix in SAS, although other options with binary data are proc nlmixed, which is useful for nonlinear mixed models (Zhang et al., 2011), and proc genmod, which is useful for generalized estimating equations (Gawarammana & Sooriyarachchi, 2017; Landerman et al., 2011). Zhang et al. (2012) analyzed the use of proc nlmixed with binary data, obtaining robust results under correct model assumptions and with a relatively small number of random effects. Gawarammana and Sooriyarachchi (2017) concluded that proc genmod only works well when the sample size is very large (250 or over). In the review by Bono et al. (2021), none of the empirical studies they analyzed reported using proc nlmixed or proc genmod, and hence they did not compare the two procedures. It should be noted nonetheless that when applied to the modeling of binary responses, different procedures within a package may give quite different results (Zhang et al., 2011).

The robustness of the GLMM also differs depending on the parameter estimation method used (Zhang et al., 2012). Here we only used the RSPL, as this is well suited to the objectives of research in psychology. It is important to note, however, that empirical studies in the field of psychology that are based on the GLMM rarely report the estimation method used (Bono et al., 2021). Furthermore, few studies focused on the GLMM have examined methods of correcting the degrees of freedom for small samples (Bell & Grunwald, 2011). Li and Redden (2015) compared the Kenward-Roger procedure with other methods of adjusting the degrees of freedom when the GLMM is used to analyze binary outcomes in small sample cluster-randomized trials. They found that the Kenward-Roger method can provide tests with very conservative Type I error rates.

Many of the results derived from simulation studies may be of little use to applied researchers in the psychological field, because the manipulated variables and their values (e.g., sample size, number of groups, number of repeated measures, correlation, etc.) show considerable heterogeneity and are rarely chosen based on research practice. Hence our aim in this simulation study was to provide empirical evidence about the robustness (in terms of Type I error) of the GLMM in split-plot designs with binary response variables. To achieve this aim, we systematically manipulated a broad set of variables and range of values, based on research practice in psychology and related fields.

Our focus here has been on the analysis of repeated binary data. However, the GLMM can be considered for other types of outcomes, such as repeated ordinal responses (Lin, 2010; Lin & Chen, 2016) or repeated count measures (Bell & Grunwald, 2011; Huang et al., 2016; Zhang et al., 2012). Other important issues related to the performance of GLMMs that are not discussed in this paper are the approach chosen to deal with missing data or attrition (Amatya & Bhaumik, 2018; Miller et al., 2020; Noh et al., 2012), overdispersion (Johnson et al., 2015), misspecification of the shape of a random effects distribution (Litière et al, 2007; McCulloch & Neuhaus, 2011), link function misspecification (Yu & Huang, 2019), and the impact of different random effects covariance matrices for longitudinal data (Hoque & Torabi, 2018). Although much more research is still required in this area, the results obtained in the present study provide useful information about the performance of GLMMs in psychological research settings. This is important as applied researchers can now use statistical software and specific packages (e.g. SAS, R, and SPSS) to conduct GLMM analyses.

It should be noted that although we simulated a broad set of variables and range of values, the conclusions to be drawn are limited by the range of evaluated conditions. For example, we studied only one model for binary outcomes, and we did not evaluate model performance with alternative link functions or estimation methods. These limitations are potentially fruitful directions for future research. Finally, the robustness of the GLMM can also be studied in terms of power (Chen et al., 2016; Stroup, 2013). Despite the increasing use of GLMMs, there are few articles reporting a power analysis for these models (e.g., Dang et al., 2008; Jiang & Oleson, 2011; Johnson et al., 2015; Kain et al., 2015). A further study analyzing the robustness of the GLMM in terms of power and calculating the optimal sample, as proposed for the LMM (Vallejo et al., 2019), would therefore provide a useful complement to the present results.

References

Aiken, L. S., Mistler, S. A., Coxe, S., & West, S. G. (2015). Analyzing count variables in individuals and groups: Single level and multilevel models. Group Process & Intergroup Relations, 18(3), 290-314. https://doi.org/10.1177/1368430214556702 [ Links ]

Amatya, A., & Bhaumik, D. K. (2018). Sample size determination for multilevel hierarchical designs using generalized linear mixed models. Biometrics, 74(2), 673-684. https://doi.org/10.1111/biom.12764 [ Links ]

Arnau, J., Bono, R., Blanca, M. J., & Bendayan, R. (2012). Using the linear mixed model to analyze non-normal data distributions in longitudinal designs. Behavior Research Methods, 44(4), 1224-1238. https://doi.org/10.3758/s13428-012-0196-y [ Links ]

Arnau, J., Bendayan, R., Blanca, M. J., & Bono, R. (2013). The effect of skewness and kurtosis on the robustness of linear mixed models. Behavior Research Methods, 45(3), 873-879. https://doi.org/10.3758/s13428-012-0306-x [ Links ]

Arnau, J., Bendayan, R., Blanca, M. J., & Bono, R. (2014a). The effect of skewness and kurtosis on the Kenward-Roger approximation when group distributions differ. Psicothema, 26(2), 279-285. https://doi.org/10.7334/psicothema2013.174 [ Links ]

Arnau, J., Bendayan, R., Blanca, M. J., & Bono, R. (2014b). Should we rely on the Kenward-Roger approximation when using linear mixed models if the groups have different distributions? British Journal of Mathematical and Statistical Psychology, 67, 408-429. https://doi.org/10.1111/bmsp.12026 [ Links ]

Baayen, R. H., Davidson, D. J., & Bates, D. M. (2008). Mixed-effects modeling with crossed random effects for subjects and items. Journal of Memory and Language, 59(4), 390-412. https://doi.org/10.1016/j.jml.2007.12.005 [ Links ]

Baayen, H., Vasishth, S., Kliegl, R., & Bates, D. (2017). The cave of shadows: Addressing the human factor with generalized additive mixed models. Journal of Memory and Language, 94, 206-234. https://dx.doi.org/10.1016/j.jml.2016.11.006 [ Links ]

Bakbergenuly, I., & Kulinskaya, E. (2018). Meta-analysis of binary outcomes via generalized linear mixed models: A simulation study. BMC Medical Research Methodology, 18(70), 1-18. https://doi.org/10.1186/s12874-018-0531-9 [ Links ]

Bandera, E., & Pérez, L. (2018). Los modelos lineales generalizados mixtos. Su aplicación en el mejoramiento de plantas (Generalized linear mixed models: Their application in plant breeding). Cultivos Tropicales, 39(1), 127-133. [ Links ]

Barker, D., D’Este, C., Campbell, M. J., & McElduff, P. (2017). Minimum number of clusters and comparison of analysis methods for cross sectional stepped wedge cluster randomised trials with binary outcomes: A simulation study. Trials, 18(119), 1-11. https://doi.org/10.1186/s13063-017-1862-2 [ Links ]

Bauer, D. J., & Sterba, S. K. (2011). Fitting multilevel models with ordinal outcomes: Performance of alternative specifications and methods of estimation. Psychological Methods, 16(4), 373-390. https://doi.org/10.1037/a0025813 [ Links ]

Bell, M. L., & Grunwald, G. K. (2011). Small sample estimation properties of longitudinal count models. Journal of Statistical Computation and Simulation, 81(9), 1067-1079. https://doi.org/10.1080/00949651003674144 [ Links ]

Blanca, M. J., Alarcón, R., Arnau, J., Bono, R., & Bendayan, R. (2017). Non-normal data: Is ANOVA still a valid option? Psicothema, 29(4), 552-557. https://doi.org/10.7334/psicothema2016.383 [ Links ]

Blanca, M. J., Alarcón, R., Arnau, J., Bono, R., & Bendayan, R. (2018). Effect of variance ratio on ANOVA robustness: Might 1.5 be the limit? Behavior Research Methods, 50, 937-962. https://doi.org/10.3758/s13428-017-0918-2 [ Links ]

Blanca, M. J., Arnau, J., López-Montiel, D., Bono, R., & Bendayan, R. (2013). Skewness and kurtosis in real data samples. Methodology: European Journal of Research Methods for the Behavioral and Social Sciences, 9(2), 78-84. https://doi.org/10.1027/1614-2241/a000057 [ Links ]

Bolker, B. M., Brooks, M. E., Clark, C. J., Geange, S. W., Poulsen, J. R., Stevens, M. H. H., & White, J. S. (2009). Generalized linear mixed models: A practical guide for ecology and evolution. Trends in Ecology and Evolution, 24(2), 127-135. https://doi.org/10.1016/j.tree.2008.10.008 [ Links ]

Bono, R., Alarcón, R., & Blanca, M.J. (2021). Report quality of generalized linear mixed models in psychology: A systematic review. Frontiers in Psychology, 12, Article 666182. https://doi.org/10.3389/fpsyg.2021.666182 [ Links ]

Bono, R., Blanca, M. J., Arnau, J., & Gómez-Benito, J. (2017). Non-normal distributions commonly used in health, education, and social sciences: A systematic review. Frontiers in Psychology, 8, Article 1602. https://doi.org/10.3389/fpsyg.2017.01602 [ Links ]

Bradley, J. V. (1978). Robustness? British Journal of Mathematical and Statistical Psychology, 31(2), 144-152. https://doi.org/10.1111/j.2044-8317.1978.tb00581.x [ Links ]

Breslow, N. E., & Clayton, D. G. (1993). Approximate inference in generalized linear mixed models. Journal of the American Statistical Association, 88(421), 9-25. https://doi.org/10.2307/2290687 [ Links ]

Brown, H., & Prescott, R. (2006). Applied mixed models in medicine. (2nd ed.). John Wiley & Sons. [ Links ]

Casals, M., Girabent-Farrés, M., & Carrasco J. L. (2014). Methodological quality and reporting of generalized linear mixed models in clinical medicine (2000-2012): A systematic review. PLoS One, 9, Article e112653. https://doi.org/10.1371/journal.pone.0112653 [ Links ]

Chen, T., Lu, N., Arora, J., Katz, I., Bossarte, R., He, H., Xia, Y., Zhang, H., & Tu, X.M. (2016). Power analysis for cluster randomized trials with binary outcomes modeled by generalized linear mixed-effects models. Journal of Applied Statistics, 43(6), 1104-1118. https://doi.org/10.1080/02664763.2015.1092109 [ Links ]

Cho, S. J., Brown-Schmidt, S., & Lee, W. Y. (2018). Autoregressive generalized linear mixed effect models with crossed random effects: An application to intensive binary time series eye-tracking data. Psychometrika, 83(3), 751-771. https://doi.org/10.1007/s11336-018-9604-2 [ Links ]

Cho, S., & Goodwin, A. P. (2017). Modeling learning in doubly multilevel binary longitudinal data using generalized linear mixed models: An application to measuring and explaining word learning. Psychometrika, 82(3), 846-870. https://doi.org/10.1007/s11336-016-9496-y [ Links ]

Cnnan, A., Laird, N. M., & Slasor, P. (1998). Tutorial in biostatistics: Using the general linear mixed model to analyse unbalanced repeated measures and longitudinal data. Statistics in Medicine, 16(20), 2349-2380. https://doi.org/10.1002/(sici)1097-0258(19971030)16:20<2349::aid-sim667>3.0.co;2-e [ Links ]

Coupé, C. (2018). Modeling linguistic variables with regression models: Addressing non-gaussian distributions, non-independent observations, and non-linear predictors with random effects and generalized additive models for location, scale, and shape. Frontiers in Psychology, 9, Article 513. http://doi.org/10.3389/fpsyg.2018.00513 [ Links ]

Dang, Q., Mazumdar, S., & Houck, P. R. (2008). Sample size and power calculations based on generalized linear mixed models with correlated binary outcomes. Computer Methods and Programs in Biomedicine, 91(2), 122-127. https://doi.org/10.1016/j.cmpb.2008.03.001 [ Links ]

Elosua, P., & De Boeck, P. (2020). Educational assessment issues in linguistically diverse contexts: A case study using a generalised linear mixed model. Language, Culture and Curriculum, 33(3), 305-318. https://doi.org/10.1080/07908318.2019.1662432 [ Links ]

Emrich, L. J., & Piedmonte, M. R. (1991). A method for generating high-dimensional multivariate binary variables. American Statistician, 45(4), 302-304. https://doi.org/10.2307/2684460 [ Links ]

Fang, L., & Louchin, T. M. (2013). Analyzing binomial data in split-plot design: classical approach or modern techniques? Communications in Statistics -Simulation and Computation, 42(4), 727-740. https://doi.org/10.1080/03610918.2011.650264 [ Links ]

Fieberg, J., Matthiopoulos, J., Hebblewhite, M., Boyce, M. S., & Frair, J. L. (2010). Correlation and studies of habitat selection: Problem, red herring or opportunity? Philosophical Transactions of the Royal Society B, 365, 2233-2244. https://doi.org/10.1098/rstb.2010.0079 [ Links ]

Gawarammana, M. B. M. B. K., & Sooriyarachchi, M. R. (2017). Comparison of methods for analyzing binary repeated measures data: A simulation-based study. Communications in Statistics - Simulation and Computation, 46(3), 2103-2120. https://doi.org/10.1080/03610918.2015.1035445 [ Links ]

Hoque, E., & Torabi, M. (2018). Modeling the random effects covariance matrix for longitudinal data with covariates measurement error. Statistics in Medicine, 37(28), 4167-4184. https://doi.org/10.1002/sim.7908 [ Links ]

Huang, L., Tang, L, Zhang, B., Zhang, Z., & Zhang, H. (2016). Comparison of different computational implementations on fitting generalized linear mixed-effects models for repeated count measures. Journal of Statistical Computation and Simulation, 86(12), 2392-2404. https://doi.org/10.1080/00949655.2015.1111376 [ Links ]

Jacqmin-Gadda, H., Sibillot, S., Proust, C., Molina, J. M., & Thiébaut, R. (2007). Robustness of the linear mixed model to misspecified error distribution. Computational Statistics and Data Analysis, 51(10), 5142-5154. https://doi.org/10.1016/j.csda.2006.05.021 [ Links ]

Jiang, D., & Oleson, J. J. (2011). Simulation study of power and sample size for repeated measures with multinomial outcomes: An application to sound direction identification experiments (SDIE). Statistics in Medicine, 30(19), 2451-2466. https://doi.org/10.1002/sim.4302 [ Links ]

Johnson, P. C. D., Barry, S. J. E., Ferguson, H. M., & Müller, P. (2015). Power analysis for generalized linear mixed models in ecology and evolution. Methods in Ecology and Evolution, 6, 133-42. https://doi.org/10.1111/2041-210X.12306 [ Links ]

Kain, M. P., Bolker, B. M., & McCoy, M. W. (2015). A practical guide and power analysis for GLMMs: Detecting among treatment variation in random effects. PeerJ, 3, Article e1226. https://doi.org/10.7717/peerj.1226 [ Links ]

Kenward, M. G., & Roger, J. H. (2009). An improved approximation to the precision of fixed effects from restricted maximum likelihood. Computational Statistics and Data Analysis, 53(7), 2583-2595. https://doi.org/10.1016/j.csda.2008.12.013 [ Links ]

Koh, H., Li, Y., Zhan, X., Chen, J., & Zhao, N. (2019). A distance-based kernel association test based on the generalized linear mixed model for correlated microbiome studies. Frontiers in Genetics, 10, Article 458. https://doi.org/10.3389/fgene.2019.00458 [ Links ]

Kowalchuk, R. K., Keselman, H. J., Algina, J., & Wolfinger, R. D. (2004). The analysis of repeated measurements with mixed-model adjusted F tests. Educational and Psychological Measurement, 64(2), 224-242. https://doi.org/10.1177/0013164403260196 [ Links ]

Kruppa, J., & Hothorn, L. (2021). A comparison study on modeling of clustered and overdispersed count data for multiple comparisons. Journal of Applied Statistics, 48(16), 3220-3232. https://doi.org/10.1080/02664763.2020.1788518 [ Links ]

Landerman, L. R., Mustillo, S. A., & Land, K. C. (2011). Modeling repeated measures of dichotomous data: Testing whether the within-person trajectory of change varies across levels of between-person factors. Social Science Research, 40(5), 1456-1464. https://doi.org/10.1016/j.ssresearch.2011.05.006 [ Links ]

Lei, M., & Lomax, R. G. (2005). The effect of varying degrees on nonnormality in structural equation modeling. Structural Equation Modeling, 12(1), 1-27. https://doi.org/10.1207/s15328007sem1201_1 [ Links ]

Li, P., & Redden, D. T. (2015). Comparing denominator degrees of freedom approximations for the generalized linear mixed model in analyzing binary outcome in small sample cluster-randomized trials. BMC Medical Research Methodology, 15(38), 1-12. https://doi.org/10.1186/s12874-015-006-x [ Links ]

Lin, K. C. (2010). Goodness-of-fit tests for modeling longitudinal ordinal data. Computational Statistics and Data Analysis, 54(7), 1872-1880. https://doi.org/10.1016/j.csda.2010.02.013 [ Links ]

Lin, K. C., & Chen, Y. J. (2016). Goodness-of-fit- tests of generalized linear mixed models for repeated ordinal responses. Journal of Applied Statistics, 43(11), 2053-2064. https://doi.org/10.1080/02664763.2015.1126568 [ Links ]

Litière, S., Alonso, A., & Molenberghs, G. (2007). Type I and Type II error under random-effects misspecification in generalized liner mixed models. Biometrics, 63(4), 1038-1044. https://doi.org/10.1111/j.1541-0420.2007.00782.x [ Links ]

Liu, S., Rovine, M. J., & Molenaar, P. C. (2012). Selecting a linear mixed model for longitudinal data: Repeated measures analysis of variance, covariance pattern model, and growth curve approaches. Psychological Methods, 17(1), 15-30. https://doi.org/10.1037/a0026971 [ Links ]

Livacic-Rojas, P., Vallejo, G., & Fernández, P. (2010). Analysis of Type I error rates of univariate and multivariate procedures in repeated measures designs. Communications in Statistics - Simulation and Computation, 39(3), 624-640. https://doi.org/10.1080/03610910903548952 [ Links ]

Lix, L. M., & Hinds, A. M. (2004). Multivariate contrasts for repeated measures designs under assumptions violations. Journal of Modern Applied Statistical Methods, 3(2), 333-344. https://doi.org/10.22237/jmasm/1099267620 [ Links ]

Lo, S., & Andrews, S. (2015). To transform or not transform: Using generalized linear mixed models to analyses reaction time data. Frontiers in Psychology, 6, Article 1171. https://doi.org./10.3389/fpsyg.2015.01171 [ Links ]

Malik, W. A., Marco-Llorca, C., Berendzen, K, & Piepho, H. P. (2020). Choice of link and variance function for generalized linear mixed models: A case study with binomial response in proteomics. Communications in Statistics - Theory and Methods, 49(17), 4313-4332. https://doi.org/10.1080/03610926.2019.1599021 [ Links ]

McCulloch, C. E., & Neuhaus, J. M. (2011). Misspecifying the shape of a random effects distribution: Why getting it wrong may not matter. Statistical Science, 26(3), 388-402. https://doi.org/10.1214/11-STS361 [ Links ]

Micceri, T. (1989). The unicorn, the normal curve, and other improbable creatures. Psychological Bulletin, 105(1), 156-166. https://doi.org/10.1037/0033-2909.105.1.156 [ Links ]

Miller, M. L., Roe, D. J., Hu, C., & Bell, M. L. (2020). Power difference in a χ2 test vs generalized linear mixed model in the presence of missing data: A simulation study. BMC Medical Research Methodology, 20(50), 1-12. https://doi-org.sire.ub.edu/10.1186/s12874-020-00936-w [ Links ]

Moscatelli, A., & Lacquaniti, F. (2011). The weight of time: Gravitational force enhances discrimination of visual motion duration. Journal of Vision, 11(4), 1-17. https://doi.org/10.1167/11.4.5 [ Links ]

Moscatelli, A., Mezzetti, M., & Lacquaniti, F. (2012). Modeling psychophysical data at the population-level: The generalized linear mixed model. Journal of Vision 12(26), 1-17. https://doi.org/10.1167/12.11.26 [ Links ]

Moscatelli, A., Polito, L., & Lacquaniti, F. (2011). Time perception of action photographs is more precise than that of still photographs. Experimental Brain Research, 210(1), 25-32. https://doi.org./10.1007/s00221-011-2598-y [ Links ]

Mowen, T. J., & Culhane, S. E. (2017). Modeling recidivism within the study of offender reentry: Hierarchical generalized linear models and lagged dependent variable models. Criminal Justice and Behavior, 44(1), 85-102. https://doi.org/10.1177/0093854816678647 [ Links ]

Noh, M., Wu, L., & Lee, Y. (2012). Hierarchical likelihood methods for nonlinear and generalized linear mixed models with missing data and measurement errors in covariates. Journal of Multivariate Analysis, 109, 42-51. http://doi.org/10.1016/j.jmva.2012.02.011 [ Links ]

Platt, R. W., Leroux, B. G., & Breslow, N. (1999). Generalized linear mixed models for meta-analysis. Statistics in Medicine, 18(6), 643-654. https://doi.org/10.1002/(SICI)1097-0258(19990330)18:6<643::AID-SIM76>3.0.CO;2-M [ Links ]

Quené, H., & van den Bergh, H. (2008). Example of mixed-effects modeling with crossed random effects and with binomial data. Journal of Memory and Language, 59(4), 413-425. https://doi.org/10.1016/j.jml.2008.02.002 [ Links ]

SAS Institute Inc. (2013). The GLIMMIX procedure. In SAS/STAT® 13.1 User’s Guide. SAS Institute Inc. [ Links ]

SAS Institute Inc. (2016). SAS/STAT® 14.2 User’s Guide. SAS Institute Inc. [ Links ]

Searle, M. P., Waters, D. J., Rex, D. C., & Wilson, R. N. (1992). Pressure, temperature and time constraints on Himalayan metamorphism from eastern Kashmir and western Zanskar. Journal of the Geological Society, 149(5), 753-773. https://doi.org./10.1144/gsjgs.149.5.0753 [ Links ]

Skrondal, A., & Rabe-Hesketh, S. (2003). Some applications of generalized linear latent and mixed models in epidemiology: Repeated measures, measurement error and multilevel modeling. Norwegian Journal of Epidemiology, 13(2), 265-278. [ Links ]

Smith, L. M., Stroup, W. W., & Marx, D. B. (2020). Poisson cokriging as a generalized linear mixed model. Spatial Statistics, 35, Article 100399. https://doi.org/10.1016/j.spasta.2019.100399 [ Links ]

Stroup, W. W. (2013). Generalized linear mixed models. Modern concepts, methods and applications. Taylor and Francis. [ Links ]

Stroup, W. W., Milliken, G. A., Claassen, E. A., & Wolfinger, R. D. (2018). SAS for mixed models: Introduction and basic applications. SAS Institute Inc. [ Links ]

Sun, S., Zhu, J., Mozaffari, S., Ober, C., Chen, M., & Zhou, X. (2019). Heritability estimation and differential analysis of count data with generalized linear mixed models in genomic sequencing studies. Bioinformatics, 35(3), 487-496. https://doi.org/10.1093/bioinformatics/bty644 [ Links ]

Thiele, J., & Markusen, B. (2012). Potential of GLMM in modelling invasive spread. CAB Reviews, 7(16), 1-10. https://doi.org/10.1079/PAVSNNR20127016 [ Links ]

Vallejo, G., Ato, M., Fernández, M. P., & Livacic-Rojas, P. E. (2019). Sample size estimation for heterogeneous growth curve models with attrition. Behavior Research Methods, 51(3), 1216-1243. https://doi.org/10.3758/s13428-018-1059-y [ Links ]

Vallejo, G., Ato, M., & Valdés, T. (2008). Consequences of misspecifying the error covariance structure in linear mixed models for longitudinal data. Methodology: European Journal of Research for the Behavioral and Social Sciences, 4(1), 10-21. https://doi.org/10.1027/1614-2241.4.1.10 [ Links ]

Wicklin, R. (2013). Simulating data with SAS. SAS Institute Inc. [ Links ]

Witte, J. S., Greenland, S., Kim, L., & Arab, L. (2000). Multilevel modeling in epidemiology with GLIMMIX. Epidemiology, 11(6), 684-688. https://doi.org/10.1097/00001648-200011000-00012 [ Links ]

Wolfinger, R., & O’Connell, M. (1993). Generalized linear models: A pseudo-likelihood approach. Journal of Statistical Computation and Simulation, 48(3-4), 233-243. https://doi.org/10.1080/00949659308811554 [ Links ]

Yu, S., & Huang, X. (2019). Link misspecification in generalized linear mixed models with a random intercept for binary responses. Test, 28(3), 827-843. https://doi.org/10.1007/s11749-018-0602-6 [ Links ]

Zhang, H., Lu, N., Feng, C., Thurston, S. W., Xia, Y., Zhu, L., & Tu, X. M. (2011). On fitting generalized linear mixed-effects models for binary responses using different statistical packages. Statistics in Medicine, 30(20), 2562-2572. https://doi.org/10.1002/sim.4265 [ Links ]

Zhang, H., Yu, Q., Feng, C., Gunzler, D., Wu, P., & Tu, X. M. (2012). A new look at the difference between the GEE and the GLMM when modeling longitudinal count responses. Journal of Applied Statistics, 39(9), 2067-2079. https://doi.org/10.1080/02664763.2012.700452 [ Links ]

Financial supportOur work was funded by the grants PSI2016-78737-P and PID2020-113191GB-I00 (AEI/FEDER, UE) from the Spanish Ministry of Economy, Industry and Competitiveness, and the Spanish Ministry of Science and Innovation.

Received: June 09, 2022; Revised: September 27, 2022; Accepted: September 28, 2022

* Correspondence address [Dirección para correspondencia]: Roser Bono. University of Barcelona (Spain). E-mail: rbono@ub.edu

Conflict of interest.-

The authors of this article declare no con-flict of interest.

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License