IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v056c02.html
   My bibliography  Save this article

SNP_NLMM: A SAS Macro to Implement a Flexible Random Effects Density for Generalized Linear and Nonlinear Mixed Models

Author

Listed:
  • Vock, David
  • Davidian, Marie
  • Tsiatis, Anastasios

Abstract

Generalized linear and nonlinear mixed models (GLMMs and NLMMs) are commonly used to represent non-Gaussian or nonlinear longitudinal or clustered data. A common assumption is that the random effects are Gaussian. However, this assumption may be unrealistic in some applications, and misspecification of the random effects density may lead to maximum likelihood parameter estimators that are inconsistent, biased, and inefficient. Because testing if the random effects are Gaussian is difficult, previous research has recommended using a flexible random effects density. However, computational limitations have precluded widespread use of flexible random effects densities for GLMMs and NLMMs. We develop a SAS macro, SNP_NLMM, that overcomes the computational challenges to fit GLMMs and NLMMs where the random effects are assumed to follow a smooth density that can be represented by the seminonparametric formulation proposed by Gallant and Nychka (1987). The macro is flexible enough to allow for any density of the response conditional on the random effects and any nonlinear mean trajectory. We demonstrate the SNP_NLMM macro on a GLMM of the disease progression of toenail infection and on a NLMM of intravenous drug concentration over time.

Suggested Citation

  • Vock, David & Davidian, Marie & Tsiatis, Anastasios, 2014. "SNP_NLMM: A SAS Macro to Implement a Flexible Random Effects Density for Generalized Linear and Nonlinear Mixed Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 56(c02).
  • Handle: RePEc:jss:jstsof:v:056:c02
    DOI: http://hdl.handle.net/10.18637/jss.v056.c02
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v056c02/v56c02.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056c02/SNP_NLMM.sas
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056c02/v56c02.sas
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056c02/arg.sas7bdat
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v056c02/toenail.sas7bdat
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v056.c02?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Murray Aitkin, 1999. "A General Maximum Likelihood Analysis of Variance Components in Generalized Linear Models," Biometrics, The International Biometric Society, vol. 55(1), pages 117-128, March.
    2. Huageng Tao & Mari Palta & Brian S. Yandell & Michael A. Newton, 1999. "An Estimation Method for the Semiparametric Mixed Effects Model," Biometrics, The International Biometric Society, vol. 55(1), pages 102-110, March.
    3. Verbeke, Geert & Lesaffre, Emmanuel, 1997. "The effect of misspecifying the random-effects distribution in linear mixed models for longitudinal data," Computational Statistics & Data Analysis, Elsevier, vol. 23(4), pages 541-556, February.
    4. R. Bock & Murray Aitkin, 1981. "Marginal maximum likelihood estimation of item parameters: Application of an EM algorithm," Psychometrika, Springer;The Psychometric Society, vol. 46(4), pages 443-459, December.
    5. Irina Irincheeva & Eva Cantoni & Marc G. Genton, 2012. "Generalized Linear Latent Variable Models with Flexible Distribution of Latent Variables," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 39(4), pages 663-680, December.
    6. Rabe-Hesketh, Sophia & Skrondal, Anders & Pickles, Andrew, 2005. "Maximum likelihood estimation of limited and discrete dependent variable models with nested random effects," Journal of Econometrics, Elsevier, vol. 128(2), pages 301-323, October.
    7. Victor H. Lachos & Dipankar Bandyopadhyay & Dipak K. Dey, 2011. "Linear and Nonlinear Mixed-Effects Models for Censored HIV Viral Loads Using Normal/Independent Distributions," Biometrics, The International Biometric Society, vol. 67(4), pages 1594-1604, December.
    8. Xiao Song & Marie Davidian & Anastasios A. Tsiatis, 2002. "A Semiparametric Likelihood Approach to Joint Modeling of Longitudinal and Time-to-Event Data," Biometrics, The International Biometric Society, vol. 58(4), pages 742-753, December.
    9. Agresti, Alan & Caffo, Brian & Ohman-Strickland, Pamela, 2004. "Examples in which misspecification of a random effects distribution reduces efficiency, and possible remedies," Computational Statistics & Data Analysis, Elsevier, vol. 47(3), pages 639-653, October.
    10. Hartford, Alan & Davidian, Marie, 2000. "Consequences of misspecifying assumptions in nonlinear mixed effects models," Computational Statistics & Data Analysis, Elsevier, vol. 34(2), pages 139-164, August.
    11. Yanyuan Ma & Marc G. Genton, 2010. "Explicit estimating equations for semiparametric generalized linear latent variable models," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 72(4), pages 475-495, September.
    12. Daowen Zhang & Marie Davidian, 2001. "Linear Mixed Models with Flexible Distributions of Random Effects for Longitudinal Data," Biometrics, The International Biometric Society, vol. 57(3), pages 795-802, September.
    13. Min Zhang & Marie Davidian, 2008. "“Smooth” Semiparametric Regression Analysis for Arbitrarily Censored Time-to-Event Data," Biometrics, The International Biometric Society, vol. 64(2), pages 567-576, June.
    14. Stephen Schilling & R. Bock, 2005. "High-dimensional maximum marginal likelihood item factor analysis by adaptive quadrature," Psychometrika, Springer;The Psychometric Society, vol. 70(3), pages 533-555, September.
    15. Rizopoulos, Dimitris, 2012. "Fast fitting of joint models for longitudinal and event time data using a pseudo-adaptive Gaussian quadrature rule," Computational Statistics & Data Analysis, Elsevier, vol. 56(3), pages 491-501.
    16. Emmanuel Lesaffre & Bart Spiessens, 2001. "On the effect of the number of quadrature points in a logistic random effects model: an example," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 50(3), pages 325-335.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Tanya P. Garcia & Yanyuan Ma, 2016. "Optimal Estimator for Logistic Model with Distribution-free Random Intercept," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 43(1), pages 156-171, March.
    2. Bianconcini, Silvia & Cagnone, Silvia, 2012. "Estimation of generalized linear latent variable models via fully exponential Laplace approximation," Journal of Multivariate Analysis, Elsevier, vol. 112(C), pages 183-193.
    3. Leonardo Grilli & Carla Rampichini, 2015. "Specification of random effects in multilevel models: a review," Quality & Quantity: International Journal of Methodology, Springer, vol. 49(3), pages 967-976, May.
    4. Marino, Maria Francesca & Alfó, Marco, 2016. "Gaussian quadrature approximations in mixed hidden Markov models for longitudinal data: A simulation study," Computational Statistics & Data Analysis, Elsevier, vol. 94(C), pages 193-209.
    5. Vitoratou, Silia & Ntzoufras, Ioannis & Moustaki, Irini, 2016. "Explaining the behavior of joint and marginal Monte Carlo estimators in latent variable models with independence assumptions," LSE Research Online Documents on Economics 57685, London School of Economics and Political Science, LSE Library.
    6. Huang, Xianzheng, 2011. "Detecting random-effects model misspecification via coarsened data," Computational Statistics & Data Analysis, Elsevier, vol. 55(1), pages 703-714, January.
    7. Francis K. C. Hui & Samuel Müller & Alan H. Welsh, 2021. "Random Effects Misspecification Can Have Severe Consequences for Random Effects Inference in Linear Mixed Models," International Statistical Review, International Statistical Institute, vol. 89(1), pages 186-206, April.
    8. Francis K.C. Hui & Nicole A. Hill & A.H. Welsh, 2022. "Assuming independence in spatial latent variable models: Consequences and implications of misspecification," Biometrics, The International Biometric Society, vol. 78(1), pages 85-99, March.
    9. Daniel McNeish & Jeffrey R. Harring & Denis Dumas, 2023. "A multilevel structured latent curve model for disaggregating student and school contributions to learning," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 32(2), pages 545-575, June.
    10. Staudenmayer, John & Ruppert, David & Buonaccorsi, John P., 2008. "Density Estimation in the Presence of Heteroscedastic Measurement Error," Journal of the American Statistical Association, American Statistical Association, vol. 103, pages 726-736, June.
    11. Rendao Ye & Tonghui Wang & Saowanit Sukparungsee & Arjun Gupta, 2015. "Tests in variance components models under skew-normal settings," Metrika: International Journal for Theoretical and Applied Statistics, Springer, vol. 78(7), pages 885-904, October.
    12. Weiping Zhang & MengMeng Zhang & Yu Chen, 2020. "A Copula-Based GLMM Model for Multivariate Longitudinal Data with Mixed-Types of Responses," Sankhya B: The Indian Journal of Statistics, Springer;Indian Statistical Institute, vol. 82(2), pages 353-379, November.
    13. Saskia Litière & Ariel Alonso & Geert Molenberghs, 2007. "Type I and Type II Error Under Random-Effects Misspecification in Generalized Linear Mixed Models," Biometrics, The International Biometric Society, vol. 63(4), pages 1038-1044, December.
    14. Christopher J. Urban & Daniel J. Bauer, 2021. "A Deep Learning Algorithm for High-Dimensional Exploratory Item Factor Analysis," Psychometrika, Springer;The Psychometric Society, vol. 86(1), pages 1-29, March.
    15. Yang Liu & Weimeng Wang, 2022. "Semiparametric Factor Analysis for Item-Level Response Time Data," Psychometrika, Springer;The Psychometric Society, vol. 87(2), pages 666-692, June.
    16. Anders Skrondal & Sophia Rabe‐Hesketh, 2009. "Prediction in multilevel generalized linear models," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 172(3), pages 659-687, June.
    17. Xiao Song & Marie Davidian & Anastasios A. Tsiatis, 2002. "A Semiparametric Likelihood Approach to Joint Modeling of Longitudinal and Time-to-Event Data," Biometrics, The International Biometric Society, vol. 58(4), pages 742-753, December.
    18. Scolas, Sylvie & El Ghouch, Anouar & Legrand, Catherine, 2016. "The SNP representation in mixture cure models with interval-censoring: estimation and goodness-of-fit testing," LIDAM Discussion Papers ISBA 2016049, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    19. Zhang, Daowen & Davidian, Marie, 2004. "Likelihood and conditional likelihood inference for generalized additive mixed models for clustered data," Journal of Multivariate Analysis, Elsevier, vol. 91(1), pages 90-106, October.
    20. Bart Spiessens & Emmanuel Lesaffre & Geert Verbeke & KyungMann Kim, 2002. "Group Sequential Methods for an Ordinal Logistic Random-Effects Model Under Misspecification," Biometrics, The International Biometric Society, vol. 58(3), pages 569-575, September.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:056:c02. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.