TY - JOUR
AU - Vock, David
AU - Davidian, Marie
AU - Tsiatis, Anastasios
PY - 2014/01/25
Y2 - 2024/11/07
TI - SNP_NLMM: A SAS Macro to Implement a Flexible Random Effects Density for Generalized Linear and Nonlinear Mixed Models
JF - Journal of Statistical Software, Code Snippets
JA - J. Stat. Soft.
VL - 56
IS - 2
SE - Code Snippets
DO - 10.18637/jss.v056.c02
UR - https://www.jstatsoft.org/index.php/jss/article/view/v056c02
SP - 1 - 21
AB - 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.
ER -