楼主: adaren
4602 2

[SAS] mixed logit 建模最好用什么? [推广有奖]

  • 0关注
  • 0粉丝

小学生

21%

还不是VIP/贵宾

-

威望
0 级
论坛币
14 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
87 点
帖子
4
精华
0
在线时间
0 小时
注册时间
2007-6-28
最后登录
2014-5-6

楼主
adaren 发表于 2007-9-13 16:51:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我现在知道有gauss的代码,可现在gauss的实用资料太少了。所以想问高手:SAS mixed logit 建模方便吗<br>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:logit Mixed Log mix GAUSS 建模 logit Mixed

回帖推荐

vincentsg 发表于2楼  查看完整内容

you can use proc glimmix which is intended for the categorical outcome with random effect Basic Features The GLIMMIX procedure enables you to specify a generalized linear mixed model and to perform confirmatory inference in such models. The syntax is similar to that of the MIXED procedure and includes CLASS, MODEL, and RANDOM statements. The following are some of the basic features of PROC GL ...

本帖被以下文库推荐

沙发
vincentsg 发表于 2007-9-14 02:54:00
<P>you can use proc glimmix which is intended for the categorical outcome with random effect</P><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Basic Features</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure enables you to specify a generalized linear mixed model</P>
<P align=left>and to perform confirmatory inference in such models. The syntax is similar to that</P>
<P align=left>of the MIXED procedure and includes CLASS, MODEL, and RANDOM statements.</P>
<P align=left>The following are some of the basic features of PROC GLIMMIX.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>SUBJECT= and GROUP= options, which enable blocking of variance matrices</P>
<P align=left>and parameter heterogeneity</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>choice of linearization about expected values or expansion about current solutions</P>
<P align=left>of best linear unbiased predictors</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>flexible covariance structures for random and residual random effects, including</P>
<P align=left>variance components, unstructured, autoregressive, and spatial structures</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>CONTRAST, ESTIMATE, LSMEANS and LSMESTIMATE statements,</P>
<P align=left>which produce hypothesis tests and estimable linear combinations of effects</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>NLOPTIONS statement, which enables you to exercise control over the numerical</P>
<P align=left>optimization. You can choose techniques, update methods, line search</P>
<P align=left>algorithms, convergence criteria, and more. Or, you can choose the default</P>
<P align=left>optimization strategies selected for the particular class of model you are fitting</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>computed variables with SAS programming statements inside of PROC</P>
<P align=left>GLIMMIX (except for variables listed in the CLASS statement). These computed</P>
<P align=left>variables can appear in the MODEL, RANDOM, WEIGHT, or FREQ</P>
<P align=left>statements.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>grouped data analysis</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>user-specified link and variance functions</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>choice of model-based variance-covariance estimators for the fixed effects</P>
<P align=left>or empirical (sandwich) estimators to make analysis robust against misspecification</P>
<P align=left>of the covariance structure and to adjust for small-sample bias</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>joint modeling for multivariate data. For example, you can model binary and</P>
<P align=left>normal responses from a subject jointly and use random effects to relate (fuse)</P>
<P align=left>the two outcomes.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>multinomial models for ordinal and nominal outcomes</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>univariate and multivariate low-rank smoothing</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Assumptions</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The primary assumptions underlying the analyses performed by PROC GLIMMIX</P>
<P align=left>are as follows:</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>If the model contains random effects, the distribution of the data conditional</P>
<P align=left>on the random effects is known. This distribution is either a member of the</P>
<P align=left>exponential family of distributions or one of the supplementary distributions</P>
<P align=left>provided by the GLIMMIX procedure. In models without random effects, the</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Notation for the Generalized Linear Mixed Model </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>7</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>unconditional (marginal) distribution is assumed to be known for maximum</P>
<P align=left>likelihood estimation, or the first two moments are known in the case of quasilikelihood</P>
<P align=left>estimation.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>The conditional expected value of the data takes the form of a linear mixed</P>
<P align=left>model after a monotonic transformation is applied.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>The problem of fitting the GLMM can be cast as a singly or doubly iterative</P>
<P align=left>optimization problem. The objective function for the optimization is a function</P>
<P align=left>of either the actual log likelihood, an approximation to the log likelihood, or</P>
<P align=left>the log likelihood of an approximated model.</P>
<P align=left>For a model containing random effects, the GLIMMIX procedure, by default, estimates</P>
<P align=left>the parameters by applying pseudo-likelihood techniques as in Wolfinger and</P>
<P align=left>O’Connell (1993) and Breslow and Clayton (1993). In a model without random</P>
<P align=left>effects (GLM models), PROC GLIMMIX estimates the parameters by maximum</P>
<P align=left>likelihood, restricted maximum likelihood, or quasi-likelihood. See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Singly or</P>
<P align=left>Doubly Iterative Fitting” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 140 on when the GLIMMIX procedure applies</P>
<P align=left>noniterative, singly and doubly iterative algorithms, and the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Default Estimation</P>
<P align=left>Techniques” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 142 on the default estimation methods.</P>
<P align=left>Once the parameters have been estimated, you can perform statistical inferences for</P>
<P align=left>the fixed effects and covariance parameters of the model. Tests of hypotheses for</P>
<P align=left>the fixed effects are based on Wald-type tests and the estimated variance-covariance</P>
<P align=left>matrix.</P>
<P align=left>PROC GLIMMIX uses the Output Delivery System (ODS) for displaying and controlling</P>
<P align=left>the output from SAS procedures. ODS enables you to convert any of the</P>
<P align=left>output from PROC GLIMMIX into a SAS data set. See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“ODS Table Names”</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>section on page 160.</P>
<P align=left>ODS statistical graphics are available with the GLIMMIX procedure. For more information,</P>
<P align=left>see the PLOTS options of the PROC GLIMMIX and LSMEANS statements.</P>
<P align=left>For more information on the ODS GRAPHICS statement, see Chapter 15, “Statistical</P>
<P align=left>Graphics Using ODS” (</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>SAS/STAT User’s Guide</FONT><FONT face=NimbusRomNo9L-Regu size=3>).</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Notation for the Generalized Linear Mixed Model</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>This section introduces the mathematical notation used throughout the chapter to</P>
<P align=left>describe the generalized linear mixed model (GLMM). See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Details” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on</P>
<P align=left>page 108 for a description of the fitting algorithms and the mathematical-statistical</P>
<P align=left>details.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>The Basic Model</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Suppose </FONT><FONT face=CMBX10 size=3>Y </FONT><FONT face=NimbusRomNo9L-Regu size=3>represents the </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n </FONT><FONT face=CMSY10 size=3>× </FONT><FONT face=CMR10 size=3>1) </FONT><FONT face=NimbusRomNo9L-Regu size=3>vector of observed data and </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>r </FONT><FONT face=CMSY10 size=3>× </FONT><FONT face=CMR10 size=3>1) </FONT><FONT face=NimbusRomNo9L-Regu size=3>vector</P>
<P align=left>of random effects. Models fit by the GLIMMIX procedure assume that</P>
<P align=left>E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMSY8 size=1>−</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMBX10 size=3>Z</FONT><FONT face=CMR10 size=3>)</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>where </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a differentiable monotonic link function and </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMSY8 size=1>−</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>is its inverse. The</P>
<P align=left>matrix</FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMSY10 size=3>×</FONT><FONT face=CMMI10 size=3>p</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix of rank </FONT><FONT face=CMMI10 size=3>k</FONT><FONT face=NimbusRomNo9L-Regu size=3>, and </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMSY10 size=3>×</FONT><FONT face=CMMI10 size=3>r</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>design matrix for the random</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>8 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>effects. The random effects are assumed to be normally distributed with mean </FONT><FONT face=CMBX10 size=3>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and</P>
<P align=left>variance matrix </FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The GLMM contains a linear mixed model inside the inverse link function. This</P>
<P align=left>model component is referred to as the linear predictor,</P></FONT><FONT face=CMMIB10 size=3>
<P align=left> </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMBX10 size=3>Z</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variance of the observations, conditional on the random effects, is</P>
<P align=left>var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMBX10 size=3>A</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMMI8 size=1>/</FONT><FONT face=CMR8 size=1>2</FONT><FONT face=CMBX10 size=3>RA</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMMI8 size=1>/</FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The matrix </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a diagonal matrix and contains the variance functions of the model.</P>
<P align=left>The variance function expresses the variance of a response as a function of the mean.</P>
<P align=left>The GLIMMIX procedure determines the variance function from the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>DIST= </FONT><FONT face=NimbusRomNo9L-Regu size=3>option in</P>
<P align=left>the MODEL statement or from the user-supplied variance function (see the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Implied</P>
<P align=left>Variance Functions” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 104). The matrix </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a variance matrix specified</P>
<P align=left>by the user through the RANDOM statement. If the conditional distribution of</P>
<P align=left>the data contains an additional scale parameter, it is either part of the variance functions</P>
<P align=left>or part of the </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix. For example, the gamma distribution with mean </FONT><FONT face=CMMI10 size=3>μ </FONT><FONT face=NimbusRomNo9L-Regu size=3>has</P>
<P align=left>variance function </FONT><FONT face=CMMI10 size=3>a</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR10 size=3>) = </FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR8 size=1>2 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI10 size=3>Y </FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR8 size=1>2</FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=NimbusRomNo9L-Regu size=3>. If your model calls for G-side random</P>
<P align=left>effects only (see below), the procedure models </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>, where </FONT><FONT face=CMBX10 size=3>I </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the identity</P>
<P align=left>matrix. </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Table 9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>on page 104 identifies the distributions for which </FONT><FONT face=CMMI10 size=3>- </FONT><FONT face=CMSY10 size=3> </FONT><FONT face=CMR10 size=3>1</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>G-side and R-side Random Effects</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure distinguishes two types of random effects. Depending on</P>
<P align=left>whether the variance of the random effect is contained in</FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>or in</FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>, these are referred</P>
<P align=left>to as “G-side” and “R-side” random effects. R-side effects are also called “residual”</P>
<P align=left>effects. Simply put, if a random effect is an element of , it is a G-side effect;</P>
<P align=left>otherwise, it is an R-side effect. Models without G-side effects are also known as</P>
<P align=left>marginal (or population-averaged) models. Models fit with the GLIMMIX procedure</P>
<P align=left>can have none, one, or more of each type of effect.</P>
<P align=left>Note that an R-side effect in the GLIMMIX procedure is equivalent to a REPEATED</P>
<P align=left>effect in the MIXED procedure. In the GLIMMIX procedure all random effects are</P>
<P align=left>specified through the RANDOM statement.</P>
<P align=left>The columns of </FONT><FONT face=CMBX10 size=3>X </FONT><FONT face=NimbusRomNo9L-Regu size=3>are constructed from effects listed on the right-hand side in the</P>
<P align=left>MODEL statement. Columns of </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>and the variance matrices</FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>and</FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>are constructed</P>
<P align=left>from the RANDOM statement.</P>
<P align=left>The </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix is by default the scaled identity matrix, </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>. The scale parameter</P></FONT><FONT face=CMMI10 size=3>
<P align=left>- </FONT><FONT face=NimbusRomNo9L-Regu size=3>is set to one if the distribution does not have a scale parameter, for example, in</P>
<P align=left>the case of the the binary, binomial, Poisson, and exponential distribution (see </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Table</P>
<P align=left>9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>on page 104). To specify a different </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix, use the RANDOM statement with</P>
<P align=left>the –RESIDUAL– keyword or the RESIDUAL option. For example, to specify that</P>
<P align=left>the </FONT><FONT face=NimbusSanL-Regu size=3>Time </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect for each patient is an R-side effect with a first-order autoregressive</P>
<P align=left>covariance structure, use the RESIDUAL option:</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>PROC GLIMMIX Contrasted with Other SAS Procedures </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>9</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random time / type=ar(1) subject=patient residual;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>To add a multiplicative overdispersion parameter, use the –RESIDUAL– keyword</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random _residual_;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>You specify the link function </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>with the LINK= option of the MODEL statement</P>
<P align=left>or with programming statements. You specify the variance function that controls the</P>
<P align=left>matrix </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>with the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>DIST= </FONT><FONT face=NimbusRomNo9L-Regu size=3>option of the MODEL statement or with programming</P>
<P align=left>statements.</P>
<P align=left>Unknown quantities subject to estimation are the fixed-effects parameter vector </FONT><FONT face=CMMIB10 size=3></P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>and the covariance parameter vector </FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=NimbusRomNo9L-Regu size=3>that comprises all unknowns in </FONT><FONT face=CMBX10 size=3>G </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The random effects </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>are not parameters of the model in the sense that they are not</P>
<P align=left>estimated. The vector </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>is a vector of random variables. The solutions for </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>are</P>
<P align=left>predictors of these random variables.</P>
<P align=left>Some fitting algorithms require that the best linear unbiased predictors (BLUPs) of </P>
<P align=left>be computed at every iteration.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>Relationship with Generalized Linear Models</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Generalized linear models (Nelder and Wedderburn 1972; McCullagh and Nelder</P>
<P align=left>1989) are a special case of GLMMs. If </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMBX10 size=3>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the GLMM reduces to</P>
<P align=left>either a generalized linear model (GLM) or a GLM with overdispersion. For example,</P>
<P align=left>if </FONT><FONT face=CMBX10 size=3>Y </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a vector of Poisson variables so that </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a diagonal matrix containing</P>
<P align=left>E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMIB10 size=3>μ </FONT><FONT face=NimbusRomNo9L-Regu size=3>on the diagonal, then the model is a Poisson regression model for </FONT><FONT face=CMMI10 size=3>- </FONT><FONT face=CMR10 size=3>= 1</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>and overdispersed relative to a Poisson distribution for </FONT><FONT face=CMMI10 size=3>- &gt; </FONT><FONT face=CMR10 size=3>1</FONT><FONT face=NimbusRomNo9L-Regu size=3>. Since the Poisson</P>
<P align=left>distribution does not have an extra scale parameter, you can model overdispersion by</P>
<P align=left>adding the statement</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random _residual_;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>to your GLIMMIX statements. If the only random effect is an overdispersion effect,</P>
<P align=left>PROC GLIMMIX fits the model by (restricted) maximum likelihood and not one of</P>
<P align=left>the methods specific to GLMMs.</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>PROC GLIMMIX Contrasted with Other SAS Procedures</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure generalizes the MIXED and GENMOD procedures in two</P>
<P align=left>important ways. First, the response can have a nonnormal distribution. The MIXED</P>
<P align=left>procedure assumes that the response is normally (Gaussian) distributed. Second,</P>
<P align=left>the GLIMMIX procedure incorporates random effects in the model and so allows</P>
<P align=left>for subject-specific (conditional) and population-averaged (marginal) inference. The</P>
<P align=left>GENMOD procedure only allows for marginal inference.</P>
<P align=left>The GLIMMIX and MIXED procedure are closely related; see the syntax and feature</P>
<P align=left>comparison in the section </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Comparing PROC GLIMMIX with PROC MIXED”</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>10 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>on page 138. The remainder of this section compares PROC GLIMMIX with the</P>
<P align=left>GENMOD, NLMIXED, LOGISTIC, and CATMOD procedures.</P>
<P align=left>The GENMOD procedure fits generalized linear models for independent data by</P>
<P align=left>maximum likelihood. It can also handle correlated data through the marginal GEE</P>
<P align=left>approach of Liang and Zeger (1986) and Zeger and Liang (1986). The GEE implementation</P>
<P align=left>in the GENMOD procedure is a marginal method that does not incorporate</P>
<P align=left>random effects. The GEE estimation in the GENMOD procedure relies on R-side covariances</P>
<P align=left>only, and the unknown parameters in </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>are estimated by the method of</P>
<P align=left>moments. The GLIMMIX procedure allows G-side random effects and R-side covariances.</P>
<P align=left>The parameters are estimated by likelihood-based techniques.</P>
<P align=left>Many of the fit statistics and tests in the GENMOD procedure are based on the likelihood.</P>
<P align=left>In a GLMM it is not always possible to derive the log likelihood of the data.</P>
<P align=left>Even if the log likelihood is tractable, it may be computationally infeasible. In some</P>
<P align=left>cases, the objective function must be constructed based on a substitute model. In other</P>
<P align=left>cases, only the first two moments of the marginal distribution can be approximated.</P>
<P align=left>Consequently, obtaining likelihood-based tests and statistics is difficult in the majority</P>
<P align=left>of generalized linear mixed models. The GLIMMIX procedure relies heavily on</P>
<P align=left>linearization and Taylor-series techniques to construct Wald-type test statistics and</P>
<P align=left>confidence intervals. Likelihood ratio tests and confidence intervals are not available</P>
<P align=left>in the GLIMMIX procedure.</P>
<P align=left>The NLMIXED procedure also fits generalized linear mixed models but the class of</P>
<P align=left>models it can accommodate is more narrow. The NLMIXED procedure relies on approximating</P>
<P align=left>the marginal log likelihood by integral approximation through Gaussian</P>
<P align=left>quadrature. Like the GLIMMIX procedure, the NLMIXED procedure defines the</P>
<P align=left>problem of obtaining solutions for the parameter estimates as an optimization problem.</P>
<P align=left>The objective function for the NLMIXED procedure is the marginal log likelihood</P>
<P align=left>obtained by integrating out the random effects from the joint distribution of</P>
<P align=left>responses and random effects using quadrature techniques. Although these are very</P>
<P align=left>accurate, the number of random effects that can be practically managed is limited.</P>
<P align=left>Also, R-side random effects cannot be accommodated with the NLMIXED procedure.</P>
<P align=left>The GLIMMIX procedure, on the other hand, determines the marginal log</P>
<P align=left>likelihood as that of an approximate linear mixed model. This allows multiple random</P>
<P align=left>effects, nested and crossed random effects, multiple cluster types, and R-side</P>
<P align=left>random components. The disadvantage is a doubly iterative fitting algorithm and the</P>
<P align=left>absence of a true log likelihood.</P>
<P align=left>The LOGISTIC and CATMOD procedures also fit generalized linear models but accommodate</P>
<P align=left>the independence case only. Binary, binomial, multinomial models for</P>
<P align=left>ordered data, and generalized logit models that can be fit with PROC LOGISTIC,</P>
<P align=left>can also be fit with the GLIMMIX procedure. The diagnostic tools and capabilities</P>
<P align=left>specific to such data implemented in the LOGISTIC procedure go beyond the</P>
<P align=left>capabilities of the GLIMMIX procedure.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>11</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=5>
<P align=left>Getting Started</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Logistic Regressions with Random Intercepts</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Researchers investigated the performance of two medical procedures in a multicenter</P>
<P align=left>study. They randomly selected 15 centers for inclusion. One of the study goals</P>
<P align=left>was to compare the occurrence of side effects for the procedures. In each center </FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMMI8 size=1>A</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>patients were randomly selected and assigned to procedure “A,” and </FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=NimbusRomNo9L-Regu size=3>patients were</P>
<P align=left>randomly assigned to procedure “B”. The following DATA step creates the data set</P>
<P align=left>for the analysis.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>data multicenter;</P>
<P align=left>input center group$ n sideeffect;</P>
<P align=left>datalines;</P>
<P align=left>1 A 32 14</P>
<P align=left>1 B 33 18</P>
<P align=left>2 A 30 4</P>
<P align=left>2 B 28 8</P>
<P align=left>3 A 23 14</P>
<P align=left>3 B 24 9</P>
<P align=left>4 A 22 7</P>
<P align=left>4 B 22 10</P>
<P align=left>5 A 20 6</P>
<P align=left>5 B 21 12</P>
<P align=left>6 A 19 1</P>
<P align=left>6 B 20 3</P>
<P align=left>7 A 17 2</P>
<P align=left>7 B 17 6</P>
<P align=left>8 A 16 7</P>
<P align=left>8 B 15 9</P>
<P align=left>9 A 13 1</P>
<P align=left>9 B 14 5</P>
<P align=left>10 A 13 3</P>
<P align=left>10 B 13 1</P>
<P align=left>11 A 11 1</P>
<P align=left>11 B 12 2</P>
<P align=left>12 A 10 1</P>
<P align=left>12 B 9 0</P>
<P align=left>13 A 9 2</P>
<P align=left>13 B 9 6</P>
<P align=left>14 A 8 1</P>
<P align=left>14 B 8 1</P>
<P align=left>15 A 7 1</P>
<P align=left>15 B 8 0</P>
<P align=left>;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variable </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>identifies the two procedures, </FONT><FONT face=NimbusSanL-Regu size=3>n </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the number of patients who</P>
<P align=left>received a given procedure in a particular center, and </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the number of</P>
<P align=left>patients who reported side effects.</P>
<P align=left>If </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iB </FONT><FONT face=NimbusRomNo9L-Regu size=3>denote the number of patients in center </FONT><FONT face=CMMI10 size=3>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>who report side effects for</P>
<P align=left>procedures </FONT><FONT face=CMMI10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, respectively, then—for a given center—these are independent</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>12 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>binomial random variables. To model the probability of side effects for the two drugs,</P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iB</FONT><FONT face=NimbusRomNo9L-Regu size=3>, you need to account for the fixed group effect and the random selection</P>
<P align=left>of centers. One possibility is to assume a model that relates group and center effects</P>
<P align=left>linearly to the logit of the probabilities:</P></FONT><FONT face=CMR10 size=3>
<P align=left>log</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iA</P></FONT><FONT face=CMR10 size=3>
<P align=left>1 </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMR10 size=3>
<P align=left>= </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI8 size=1>i</P></FONT><FONT face=CMR10 size=3>
<P align=left>log</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iB</P></FONT><FONT face=CMR10 size=3>
<P align=left>1 </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iB</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMR10 size=3>
<P align=left>= </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI8 size=1>i</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>In this model, </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=NimbusRomNo9L-Regu size=3>measures the difference in the logits of experiencing side</P>
<P align=left>effects, and the </FONT><FONT face=CMMI8 size=1>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>are independent random variables due to the random selection</P>
<P align=left>of centers. If you think of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>as the overall intercept in the model, then the </FONT><FONT face=CMMI8 size=1>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>are</P>
<P align=left>random intercept adjustments. Observations from the same center receive the same</P>
<P align=left>adjustment, and these vary randomly from center to center with variance var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI8 size=1>i</FONT><FONT face=CMR10 size=3>] =</P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=CMMI8 size=1>
<P align=left>c </FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>Since </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the conditional mean of the sample proportion, E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMMI8 size=1>i</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=NimbusRomNo9L-Regu size=3>,</P>
<P align=left>you can model the sample proportions as binomial ratios in a generalized linear mixed</P>
<P align=left>model. The following statements request this analysis under the assumption of normally</P>
<P align=left>distributed center effects with equal variance and a logit link function.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>proc glimmix data=multicenter;</P>
<P align=left>class center group;</P>
<P align=left>model sideeffect/n = group / solution;</P>
<P align=left>random intercept / subject=center;</P>
<P align=left>run;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The PROC GLIMMIX statement invokes the procedure. The CLASS statement instructs</P>
<P align=left>the procedure to treat the variables </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>as classification variables.</P>
<P align=left>The MODEL statement specifies the response variable as a sample proportion</P>
<P align=left>using the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax. In terms of the previous formulas, </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect/n </FONT><FONT face=NimbusRomNo9L-Regu size=3>corresponds</P>
<P align=left>to </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>for observations from Group A and to </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iB</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iB </FONT><FONT face=NimbusRomNo9L-Regu size=3>for observations</P>
<P align=left>from Group B. The SOLUTION option in the MODEL statement requests a listing</P>
<P align=left>of the solutions for the fixed-effects parameter estimates. Note that because of the</P></FONT><FONT face=NimbusRomNo9L-ReguItal size=3>
<P align=left>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, the GLIMMIX procedure defaults to the binomial distribution,</P>
<P align=left>and that distribution’s default link is the logit link. The RANDOM statement specifies</P>
<P align=left>that the linear predictor contains an intercept term that randomly varies at the</P>
<P align=left>level of the </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect. In other words, a random intercept is drawn separately and</P>
<P align=left>independently for each center in the study.</P>
<P align=left>The results of this analysis are shown in the following tables.</P>
<P align=left>The “Model Information Table” in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 1 </FONT><FONT face=NimbusRomNo9L-Regu size=3>summarizes important information about</P>
<P align=left>the model you fit and about aspects of the estimation technique.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>13</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>The GLIMMIX Procedure</P>
<P align=left>Model Information</P>
<P align=left>Data Set WORK.MULTICENTER</P>
<P align=left>Response Variable (Events) sideeffect</P>
<P align=left>Response Variable (Trials) n</P>
<P align=left>Response Distribution Binomial</P>
<P align=left>Link Function Logit</P>
<P align=left>Variance Function Default</P>
<P align=left>Variance Matrix Blocked By center</P>
<P align=left>Estimation Technique Residual PL</P>
<P align=left>Degrees of Freedom Method Containment</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 1. </B></FONT><FONT face=NimbusSanL-Regu size=2>Model Information</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>PROC GLIMMIX recognizes the variables </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=NimbusSanL-Regu size=3>n </FONT><FONT face=NimbusRomNo9L-Regu size=3>as the numerator and</P>
<P align=left>denominator in the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, respectively. The distribution—conditional</P>
<P align=left>on the random center effects—is binomial. The marginal variance matrix is blockdiagonal,</P>
<P align=left>and observations from the same center form the blocks. The default estimation</P>
<P align=left>technique in generalized linear mixed models is residual pseudo-likelihood with</P>
<P align=left>a subject-specific expansion (METHOD=RSPL).</P>
<P align=left>In </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 2</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the “Class Level Information” table lists the levels of the variables</P>
<P align=left>specified in the CLASS statement and the ordering of the levels. The “Number of</P>
<P align=left>Observations” table displays the number of observations read and used in the analysis.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Class Level Information</P>
<P align=left>Class Levels Values</P>
<P align=left>center 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15</P>
<P align=left>group 2 A B</P>
<P align=left>Number of Observations Read 30</P>
<P align=left>Number of Observations Used 30</P>
<P align=left>Number of Events 155</P>
<P align=left>Number of Trials 503</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 2. </B></FONT><FONT face=NimbusSanL-Regu size=2>Class Level Information and Number of Observations</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There are two variables listed in the CLASS statement. The </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable has</P>
<P align=left>fifteen levels, and the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable has two levels. Since the response is specified</P>
<P align=left>through the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trial </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, the “Number of Observations” table also contains the</P>
<P align=left>total number of events and trials used in the analysis.</P>
<P align=left>The “Dimensions” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 3 </FONT><FONT face=NimbusRomNo9L-Regu size=3>lists the size of relevant matrices.</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>14 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Dimensions</P>
<P align=left>G-side Cov. Parameters 1</P>
<P align=left>Columns in X 3</P>
<P align=left>Columns in Z per Subject 1</P>
<P align=left>Subjects (Blocks in V) 15</P>
<P align=left>Max Obs per Subject 2</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 3. </B></FONT><FONT face=NimbusSanL-Regu size=2>Dimensions</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There are three columns in the </FONT><FONT face=CMBX10 size=3>X </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix, corresponding to an intercept and the two</P>
<P align=left>levels of the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable. For each subject (center), the </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix contains only an</P>
<P align=left>intercept column.</P>
<P align=left>The “Optimization Information” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 4 </FONT><FONT face=NimbusRomNo9L-Regu size=3>provides information about the</P>
<P align=left>methods and size of the optimization problem.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Optimization Information</P>
<P align=left>Optimization Technique Dual Quasi-Newton</P>
<P align=left>Parameters in Optimization 1</P>
<P align=left>Lower Boundaries 1</P>
<P align=left>Upper Boundaries 0</P>
<P align=left>Fixed Effects Profiled</P>
<P align=left>Starting From Data</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 4. </B></FONT><FONT face=NimbusSanL-Regu size=2>Optimization Information</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The default optimization technique for generalized linear mixed models is the Quasi-</P>
<P align=left>Newton method. Because a residual likelihood technique is used to compute the objective</P>
<P align=left>function, only the covariance parameters are participating in the optimization.</P>
<P align=left>A lower boundary constraint is placed on the variance component for the random</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect. The solution for this variance cannot be less than zero.</P>
<P align=left>The “Iteration History” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 5 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays information about the progress of</P>
<P align=left>the optimization process.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>15</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Iteration History</P>
<P align=left>Objective Max</P>
<P align=left>Iteration Restarts Subiterations Function Change Gradient</P>
<P align=left>0 0 5 79.688580269 0.11807224 7.851E-7</P>
<P align=left>1 0 3 81.294622554 0.02558021 8.209E-7</P>
<P align=left>2 0 2 81.438701534 0.00166079 4.061E-8</P>
<P align=left>3 0 1 81.444083567 0.00006263 2.311E-8</P>
<P align=left>4 0 1 81.444265216 0.00000421 0.000025</P>
<P align=left>5 0 1 81.444277364 0.00000383 0.000023</P>
<P align=left>6 0 1 81.444266322 0.00000348 0.000021</P>
<P align=left>7 0 1 81.44427636 0.00000316 0.000019</P>
<P align=left>8 0 1 81.444267235 0.00000287 0.000017</P>
<P align=left>9 0 1 81.444275529 0.00000261 0.000016</P>
<P align=left>10 0 1 81.44426799 0.00000237 0.000014</P>
<P align=left>11 0 1 81.444274843 0.00000216 0.000013</P>
<P align=left>12 0 1 81.444268614 0.00000196 0.000012</P>
<P align=left>13 0 1 81.444274277 0.00000178 0.000011</P>
<P align=left>14 0 1 81.444269129 0.00000162 9.772E-6</P>
<P align=left>15 0 0 81.444273808 0.00000000 9.102E-6</P>
<P align=left>Convergence criterion (PCONV=1.11022E-8) satisfied.</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 5. </B></FONT><FONT face=NimbusSanL-Regu size=2>Iteration History and Convergence Status</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>After the initial optimization, the GLIMMIX procedure performed 15 updates before</P>
<P align=left>the convergence criterion was met. At convergence, the largest absolute value of the</P>
<P align=left>gradient was near zero. This indicates that the process stopped at an extremum of the</P>
<P align=left>objective function.</P>
<P align=left>The “Fit Statistics” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 6 </FONT><FONT face=NimbusRomNo9L-Regu size=3>lists information about the fitted model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Fit Statistics</P>
<P align=left>-2 Res Log Pseudo-Likelihood 81.44</P>
<P align=left>Generalized Chi-Square 30.69</P>
<P align=left>Gener. Chi-Square / DF 1.10</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 6. </B></FONT><FONT face=NimbusSanL-Regu size=2>Fit Statistics</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Twice the negative of the residual log lilikelihood in the final pseudo-model equaled</P>
<P align=left>81.44. The ratio of the generalized chi-square statistic and its degrees of freedom is</P>
<P align=left>close to 1. This is a measure of the residual variability in the marginal distribution of</P>
<P align=left>the data.</P>
<P align=left>The “Covariance Parameter Estimates” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 7 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays estimates and</P>
<P align=left>asymptotic estimated standard errors for all covariance parameters.</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>16 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Covariance Parameter Estimates</P>
<P align=left>Standard</P>
<P align=left>Cov Parm Subject Estimate Error</P>
<P align=left>Intercept center 0.6176 0.3181</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 7. </B></FONT><FONT face=NimbusSanL-Regu size=2>Covariance Parameter Estimates</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variance of the random center intercepts on the logit scale is estimated as </FONT><FONT face=CMEX10 size=3>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=CMMI8 size=1>
<P align=left>c </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>6176</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The “Parameter Estimates” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 8 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays the solutions for the fixed effects</P>
<P align=left>in the model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Solutions for Fixed Effects</P>
<P align=left>Standard</P>
<P align=left>Effect group Estimate Error DF t Value Pr &gt; |t|</P>
<P align=left>Intercept -0.8071 0.2514 14 -3.21 0.0063</P>
<P align=left>group A -0.4896 0.2034 14 -2.41 0.0305</P>
<P align=left>group B 0 . . . .</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 8. </B></FONT><FONT face=NimbusSanL-Regu size=2>Parameter Estimates</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Because of the fixed-effects parameterization used in the GLIMMIX procedure, the</P>
<P align=left>“Intercept” effect is an estimate of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, and the “A” group effect is an estimate</P>
<P align=left>of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the log-odds ratio. The associated estimated probabilities of side effects</P>
<P align=left>in the two groups are</P></FONT><FONT face=CMEX10 size=3>
<P align=left>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>1</P>
<P align=left>1 + exp</FONT><FONT face=CMSY10 size=3>{</FONT><FONT face=CMR10 size=3>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>8071 + 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>4896</FONT><FONT face=CMSY10 size=3>}</P></FONT><FONT face=CMR10 size=3>
<P align=left>= 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>2147</P></FONT><FONT face=CMEX10 size=3>
<P align=left>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>1</P>
<P align=left>1 + exp</FONT><FONT face=CMSY10 size=3>{</FONT><FONT face=CMR10 size=3>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>8071</FONT><FONT face=CMSY10 size=3>}</P></FONT><FONT face=CMR10 size=3>
<P align=left>= 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>3085</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There is a significant difference between the two groups (</FONT><FONT face=CMMI10 size=3>p</FONT><FONT face=NimbusRomNo9L-Regu size=3>=0.0305).</P>
<P align=left>The “Type III Tests of Fixed Effect” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays significance tests for</P>
<P align=left>the fixed effects in the model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Type III Tests of Fixed Effects</P>
<P align=left>Num Den</P>
<P align=left>Effect DF DF F Value Pr &gt; F</P>
<P align=left>group 1 14 5.79 0.0305</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 9. </B></FONT><FONT face=NimbusSanL-Regu size=2>Type III Tests of Fixed Effects</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>17</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Because the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect has only two levels, the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>p</FONT><FONT face=NimbusRomNo9L-Regu size=3>-value for the effect is the same as</P>
<P align=left>in the “Parameter Estimates” table, and the “</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>F </FONT><FONT face=NimbusRomNo9L-Regu size=3>Value” is the square of the “</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>t </FONT><FONT face=NimbusRomNo9L-Regu size=3>Value”</P>
<P align=left>shown there.</P>
<P align=left>You can produce the estimates of the average logits in the two groups and their predictions</P>
<P align=left>on the scale of the data with the LSMEANS statement in PROC GLIMMIX.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>ods select lsmeans;</P>
<P align=left>proc glimmix data=multicenter;</P>
<P align=left>class center group;</P>
<P align=left>model sideeffect/n = group / solution;</P>
<P align=left>random intercept / subject=center;</P>
<P align=left>lsmeans group / cl ilink;</P>
<P align=left>run;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The LSMEANS statement requests the least-squares means of the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect on the</P>
<P align=left>logit scale. The CL option requests their confidence limits. The ILINK option adds</P>
<P align=left>estimates, standard errors, and confidence limits on the mean (probability) scale. The</P>
<P align=left>table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 10 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays the results.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>The GLIMMIX Procedure</P>
<P align=left>group Least Squares Means</P>
<P align=left>Standard</P>
<P align=left>group Estimate Error DF t Value Pr &gt; |t| Alpha Lower Upper</P>
<P align=left>A -1.2966 0.2601 14 -4.99 0.0002 0.05 -1.8544 -0.7388</P>
<P align=left>B -0.8071 0.2514 14 -3.21 0.0063 0.05 -1.3462 -0.2679</P>
<P align=left>group Least Squares Means</P>
<P align=left>Standard</P>
<P align=left>Error Lower Upper</P>
<P align=left>group Mean Mean Mean Mean</P>
<P align=left>A 0.2147 0.04385 0.1354 0.3233</P>
<P align=left>B 0.3085 0.05363 0.2065 0.4334</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 10. </B></FONT><FONT face=NimbusSanL-Regu size=2>Least-squares Means</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The “Estimate” column displays the least-squares mean estimate on the logit scale,</P>
<P align=left>and the “Mean” column represents its mapping onto the probability scale. The</P>
<P align=left>“Lower” and “Upper” columns are 95% confidence limits for the logits in the two</P>
<P align=left>groups. The “Lower Mean” and “Upper Mean” columns are the corresponding confidence</P>
<P align=left>limits for the probabilities of side effects. These limits are obtained by inversely</P>
<P align=left>linking the confidence bounds on the linear scale, and thus are not symmetric</P>
<P>about the estimate of the probabilities.<B><FONT face=NimbusSanL-Bold color=#00009a size=4></P>
<P align=left>Basic Features</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure enables you to specify a generalized linear mixed model</P>
<P align=left>and to perform confirmatory inference in such models. The syntax is similar to that</P>
<P align=left>of the MIXED procedure and includes CLASS, MODEL, and RANDOM statements.</P>
<P align=left>The following are some of the basic features of PROC GLIMMIX.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>SUBJECT= and GROUP= options, which enable blocking of variance matrices</P>
<P align=left>and parameter heterogeneity</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>choice of linearization about expected values or expansion about current solutions</P>
<P align=left>of best linear unbiased predictors</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>flexible covariance structures for random and residual random effects, including</P>
<P align=left>variance components, unstructured, autoregressive, and spatial structures</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>CONTRAST, ESTIMATE, LSMEANS and LSMESTIMATE statements,</P>
<P align=left>which produce hypothesis tests and estimable linear combinations of effects</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>NLOPTIONS statement, which enables you to exercise control over the numerical</P>
<P align=left>optimization. You can choose techniques, update methods, line search</P>
<P align=left>algorithms, convergence criteria, and more. Or, you can choose the default</P>
<P align=left>optimization strategies selected for the particular class of model you are fitting</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>computed variables with SAS programming statements inside of PROC</P>
<P align=left>GLIMMIX (except for variables listed in the CLASS statement). These computed</P>
<P align=left>variables can appear in the MODEL, RANDOM, WEIGHT, or FREQ</P>
<P align=left>statements.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>grouped data analysis</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>user-specified link and variance functions</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>choice of model-based variance-covariance estimators for the fixed effects</P>
<P align=left>or empirical (sandwich) estimators to make analysis robust against misspecification</P>
<P align=left>of the covariance structure and to adjust for small-sample bias</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>joint modeling for multivariate data. For example, you can model binary and</P>
<P align=left>normal responses from a subject jointly and use random effects to relate (fuse)</P>
<P align=left>the two outcomes.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>multinomial models for ordinal and nominal outcomes</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>univariate and multivariate low-rank smoothing</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Assumptions</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The primary assumptions underlying the analyses performed by PROC GLIMMIX</P>
<P align=left>are as follows:</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>If the model contains random effects, the distribution of the data conditional</P>
<P align=left>on the random effects is known. This distribution is either a member of the</P>
<P align=left>exponential family of distributions or one of the supplementary distributions</P>
<P align=left>provided by the GLIMMIX procedure. In models without random effects, the</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Notation for the Generalized Linear Mixed Model </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>7</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>unconditional (marginal) distribution is assumed to be known for maximum</P>
<P align=left>likelihood estimation, or the first two moments are known in the case of quasilikelihood</P>
<P align=left>estimation.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>The conditional expected value of the data takes the form of a linear mixed</P>
<P align=left>model after a monotonic transformation is applied.</P></FONT><FONT face=CMSY10 size=3>
<P align=left>• </FONT><FONT face=NimbusRomNo9L-Regu size=3>The problem of fitting the GLMM can be cast as a singly or doubly iterative</P>
<P align=left>optimization problem. The objective function for the optimization is a function</P>
<P align=left>of either the actual log likelihood, an approximation to the log likelihood, or</P>
<P align=left>the log likelihood of an approximated model.</P>
<P align=left>For a model containing random effects, the GLIMMIX procedure, by default, estimates</P>
<P align=left>the parameters by applying pseudo-likelihood techniques as in Wolfinger and</P>
<P align=left>O’Connell (1993) and Breslow and Clayton (1993). In a model without random</P>
<P align=left>effects (GLM models), PROC GLIMMIX estimates the parameters by maximum</P>
<P align=left>likelihood, restricted maximum likelihood, or quasi-likelihood. See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Singly or</P>
<P align=left>Doubly Iterative Fitting” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 140 on when the GLIMMIX procedure applies</P>
<P align=left>noniterative, singly and doubly iterative algorithms, and the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Default Estimation</P>
<P align=left>Techniques” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 142 on the default estimation methods.</P>
<P align=left>Once the parameters have been estimated, you can perform statistical inferences for</P>
<P align=left>the fixed effects and covariance parameters of the model. Tests of hypotheses for</P>
<P align=left>the fixed effects are based on Wald-type tests and the estimated variance-covariance</P>
<P align=left>matrix.</P>
<P align=left>PROC GLIMMIX uses the Output Delivery System (ODS) for displaying and controlling</P>
<P align=left>the output from SAS procedures. ODS enables you to convert any of the</P>
<P align=left>output from PROC GLIMMIX into a SAS data set. See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“ODS Table Names”</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>section on page 160.</P>
<P align=left>ODS statistical graphics are available with the GLIMMIX procedure. For more information,</P>
<P align=left>see the PLOTS options of the PROC GLIMMIX and LSMEANS statements.</P>
<P align=left>For more information on the ODS GRAPHICS statement, see Chapter 15, “Statistical</P>
<P align=left>Graphics Using ODS” (</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>SAS/STAT User’s Guide</FONT><FONT face=NimbusRomNo9L-Regu size=3>).</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Notation for the Generalized Linear Mixed Model</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>This section introduces the mathematical notation used throughout the chapter to</P>
<P align=left>describe the generalized linear mixed model (GLMM). See the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Details” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on</P>
<P align=left>page 108 for a description of the fitting algorithms and the mathematical-statistical</P>
<P align=left>details.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>The Basic Model</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Suppose </FONT><FONT face=CMBX10 size=3>Y </FONT><FONT face=NimbusRomNo9L-Regu size=3>represents the </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n </FONT><FONT face=CMSY10 size=3>× </FONT><FONT face=CMR10 size=3>1) </FONT><FONT face=NimbusRomNo9L-Regu size=3>vector of observed data and </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>r </FONT><FONT face=CMSY10 size=3>× </FONT><FONT face=CMR10 size=3>1) </FONT><FONT face=NimbusRomNo9L-Regu size=3>vector</P>
<P align=left>of random effects. Models fit by the GLIMMIX procedure assume that</P>
<P align=left>E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMSY8 size=1>−</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMBX10 size=3>Z</FONT><FONT face=CMR10 size=3>)</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>where </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a differentiable monotonic link function and </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMSY8 size=1>−</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>is its inverse. The</P>
<P align=left>matrix</FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMSY10 size=3>×</FONT><FONT face=CMMI10 size=3>p</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix of rank </FONT><FONT face=CMMI10 size=3>k</FONT><FONT face=NimbusRomNo9L-Regu size=3>, and </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a </FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMSY10 size=3>×</FONT><FONT face=CMMI10 size=3>r</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>design matrix for the random</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>8 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>effects. The random effects are assumed to be normally distributed with mean </FONT><FONT face=CMBX10 size=3>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and</P>
<P align=left>variance matrix </FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The GLMM contains a linear mixed model inside the inverse link function. This</P>
<P align=left>model component is referred to as the linear predictor,</P></FONT><FONT face=CMMIB10 size=3>
<P align=left> </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMBX10 size=3>X</FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMBX10 size=3>Z</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variance of the observations, conditional on the random effects, is</P>
<P align=left>var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMBX10 size=3>A</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMMI8 size=1>/</FONT><FONT face=CMR8 size=1>2</FONT><FONT face=CMBX10 size=3>RA</FONT><FONT face=CMR8 size=1>1</FONT><FONT face=CMMI8 size=1>/</FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The matrix </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a diagonal matrix and contains the variance functions of the model.</P>
<P align=left>The variance function expresses the variance of a response as a function of the mean.</P>
<P align=left>The GLIMMIX procedure determines the variance function from the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>DIST= </FONT><FONT face=NimbusRomNo9L-Regu size=3>option in</P>
<P align=left>the MODEL statement or from the user-supplied variance function (see the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Implied</P>
<P align=left>Variance Functions” </FONT><FONT face=NimbusRomNo9L-Regu size=3>section on page 104). The matrix </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a variance matrix specified</P>
<P align=left>by the user through the RANDOM statement. If the conditional distribution of</P>
<P align=left>the data contains an additional scale parameter, it is either part of the variance functions</P>
<P align=left>or part of the </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix. For example, the gamma distribution with mean </FONT><FONT face=CMMI10 size=3>μ </FONT><FONT face=NimbusRomNo9L-Regu size=3>has</P>
<P align=left>variance function </FONT><FONT face=CMMI10 size=3>a</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR10 size=3>) = </FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR8 size=1>2 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI10 size=3>Y </FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3>μ</FONT><FONT face=CMR8 size=1>2</FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=NimbusRomNo9L-Regu size=3>. If your model calls for G-side random</P>
<P align=left>effects only (see below), the procedure models </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>, where </FONT><FONT face=CMBX10 size=3>I </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the identity</P>
<P align=left>matrix. </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Table 9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>on page 104 identifies the distributions for which </FONT><FONT face=CMMI10 size=3>- </FONT><FONT face=CMSY10 size=3> </FONT><FONT face=CMR10 size=3>1</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>G-side and R-side Random Effects</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure distinguishes two types of random effects. Depending on</P>
<P align=left>whether the variance of the random effect is contained in</FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>or in</FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>, these are referred</P>
<P align=left>to as “G-side” and “R-side” random effects. R-side effects are also called “residual”</P>
<P align=left>effects. Simply put, if a random effect is an element of , it is a G-side effect;</P>
<P align=left>otherwise, it is an R-side effect. Models without G-side effects are also known as</P>
<P align=left>marginal (or population-averaged) models. Models fit with the GLIMMIX procedure</P>
<P align=left>can have none, one, or more of each type of effect.</P>
<P align=left>Note that an R-side effect in the GLIMMIX procedure is equivalent to a REPEATED</P>
<P align=left>effect in the MIXED procedure. In the GLIMMIX procedure all random effects are</P>
<P align=left>specified through the RANDOM statement.</P>
<P align=left>The columns of </FONT><FONT face=CMBX10 size=3>X </FONT><FONT face=NimbusRomNo9L-Regu size=3>are constructed from effects listed on the right-hand side in the</P>
<P align=left>MODEL statement. Columns of </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>and the variance matrices</FONT><FONT face=CMBX10 size=3>G</FONT><FONT face=NimbusRomNo9L-Regu size=3>and</FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>are constructed</P>
<P align=left>from the RANDOM statement.</P>
<P align=left>The </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix is by default the scaled identity matrix, </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>. The scale parameter</P></FONT><FONT face=CMMI10 size=3>
<P align=left>- </FONT><FONT face=NimbusRomNo9L-Regu size=3>is set to one if the distribution does not have a scale parameter, for example, in</P>
<P align=left>the case of the the binary, binomial, Poisson, and exponential distribution (see </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Table</P>
<P align=left>9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>on page 104). To specify a different </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix, use the RANDOM statement with</P>
<P align=left>the –RESIDUAL– keyword or the RESIDUAL option. For example, to specify that</P>
<P align=left>the </FONT><FONT face=NimbusSanL-Regu size=3>Time </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect for each patient is an R-side effect with a first-order autoregressive</P>
<P align=left>covariance structure, use the RESIDUAL option:</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>PROC GLIMMIX Contrasted with Other SAS Procedures </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>9</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random time / type=ar(1) subject=patient residual;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>To add a multiplicative overdispersion parameter, use the –RESIDUAL– keyword</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random _residual_;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>You specify the link function </FONT><FONT face=CMMI10 size=3>g</FONT><FONT face=CMR10 size=3>(</FONT><FONT face=CMSY10 size=3>·</FONT><FONT face=CMR10 size=3>) </FONT><FONT face=NimbusRomNo9L-Regu size=3>with the LINK= option of the MODEL statement</P>
<P align=left>or with programming statements. You specify the variance function that controls the</P>
<P align=left>matrix </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>with the </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>DIST= </FONT><FONT face=NimbusRomNo9L-Regu size=3>option of the MODEL statement or with programming</P>
<P align=left>statements.</P>
<P align=left>Unknown quantities subject to estimation are the fixed-effects parameter vector </FONT><FONT face=CMMIB10 size=3></P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>and the covariance parameter vector </FONT><FONT face=CMMIB10 size=3> </FONT><FONT face=NimbusRomNo9L-Regu size=3>that comprises all unknowns in </FONT><FONT face=CMBX10 size=3>G </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMBX10 size=3>R</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The random effects </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>are not parameters of the model in the sense that they are not</P>
<P align=left>estimated. The vector </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>is a vector of random variables. The solutions for </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=NimbusRomNo9L-Regu size=3>are</P>
<P align=left>predictors of these random variables.</P>
<P align=left>Some fitting algorithms require that the best linear unbiased predictors (BLUPs) of </P>
<P align=left>be computed at every iteration.</P></FONT><B><FONT face=NimbusSanL-BoldItal color=#00009a size=3>
<P align=left>Relationship with Generalized Linear Models</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Generalized linear models (Nelder and Wedderburn 1972; McCullagh and Nelder</P>
<P align=left>1989) are a special case of GLMMs. If </FONT><FONT face=CMMIB10 size=3></FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMBX10 size=3>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=CMR10 size=3>= </FONT><FONT face=CMMI10 size=3>-</FONT><FONT face=CMBX10 size=3>I</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the GLMM reduces to</P>
<P align=left>either a generalized linear model (GLM) or a GLM with overdispersion. For example,</P>
<P align=left>if </FONT><FONT face=CMBX10 size=3>Y </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a vector of Poisson variables so that </FONT><FONT face=CMBX10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>is a diagonal matrix containing</P>
<P align=left>E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMBX10 size=3>Y</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMIB10 size=3>μ </FONT><FONT face=NimbusRomNo9L-Regu size=3>on the diagonal, then the model is a Poisson regression model for </FONT><FONT face=CMMI10 size=3>- </FONT><FONT face=CMR10 size=3>= 1</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>and overdispersed relative to a Poisson distribution for </FONT><FONT face=CMMI10 size=3>- &gt; </FONT><FONT face=CMR10 size=3>1</FONT><FONT face=NimbusRomNo9L-Regu size=3>. Since the Poisson</P>
<P align=left>distribution does not have an extra scale parameter, you can model overdispersion by</P>
<P align=left>adding the statement</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>random _residual_;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>to your GLIMMIX statements. If the only random effect is an overdispersion effect,</P>
<P align=left>PROC GLIMMIX fits the model by (restricted) maximum likelihood and not one of</P>
<P align=left>the methods specific to GLMMs.</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>PROC GLIMMIX Contrasted with Other SAS Procedures</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The GLIMMIX procedure generalizes the MIXED and GENMOD procedures in two</P>
<P align=left>important ways. First, the response can have a nonnormal distribution. The MIXED</P>
<P align=left>procedure assumes that the response is normally (Gaussian) distributed. Second,</P>
<P align=left>the GLIMMIX procedure incorporates random effects in the model and so allows</P>
<P align=left>for subject-specific (conditional) and population-averaged (marginal) inference. The</P>
<P align=left>GENMOD procedure only allows for marginal inference.</P>
<P align=left>The GLIMMIX and MIXED procedure are closely related; see the syntax and feature</P>
<P align=left>comparison in the section </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>“Comparing PROC GLIMMIX with PROC MIXED”</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>10 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>on page 138. The remainder of this section compares PROC GLIMMIX with the</P>
<P align=left>GENMOD, NLMIXED, LOGISTIC, and CATMOD procedures.</P>
<P align=left>The GENMOD procedure fits generalized linear models for independent data by</P>
<P align=left>maximum likelihood. It can also handle correlated data through the marginal GEE</P>
<P align=left>approach of Liang and Zeger (1986) and Zeger and Liang (1986). The GEE implementation</P>
<P align=left>in the GENMOD procedure is a marginal method that does not incorporate</P>
<P align=left>random effects. The GEE estimation in the GENMOD procedure relies on R-side covariances</P>
<P align=left>only, and the unknown parameters in </FONT><FONT face=CMBX10 size=3>R </FONT><FONT face=NimbusRomNo9L-Regu size=3>are estimated by the method of</P>
<P align=left>moments. The GLIMMIX procedure allows G-side random effects and R-side covariances.</P>
<P align=left>The parameters are estimated by likelihood-based techniques.</P>
<P align=left>Many of the fit statistics and tests in the GENMOD procedure are based on the likelihood.</P>
<P align=left>In a GLMM it is not always possible to derive the log likelihood of the data.</P>
<P align=left>Even if the log likelihood is tractable, it may be computationally infeasible. In some</P>
<P align=left>cases, the objective function must be constructed based on a substitute model. In other</P>
<P align=left>cases, only the first two moments of the marginal distribution can be approximated.</P>
<P align=left>Consequently, obtaining likelihood-based tests and statistics is difficult in the majority</P>
<P align=left>of generalized linear mixed models. The GLIMMIX procedure relies heavily on</P>
<P align=left>linearization and Taylor-series techniques to construct Wald-type test statistics and</P>
<P align=left>confidence intervals. Likelihood ratio tests and confidence intervals are not available</P>
<P align=left>in the GLIMMIX procedure.</P>
<P align=left>The NLMIXED procedure also fits generalized linear mixed models but the class of</P>
<P align=left>models it can accommodate is more narrow. The NLMIXED procedure relies on approximating</P>
<P align=left>the marginal log likelihood by integral approximation through Gaussian</P>
<P align=left>quadrature. Like the GLIMMIX procedure, the NLMIXED procedure defines the</P>
<P align=left>problem of obtaining solutions for the parameter estimates as an optimization problem.</P>
<P align=left>The objective function for the NLMIXED procedure is the marginal log likelihood</P>
<P align=left>obtained by integrating out the random effects from the joint distribution of</P>
<P align=left>responses and random effects using quadrature techniques. Although these are very</P>
<P align=left>accurate, the number of random effects that can be practically managed is limited.</P>
<P align=left>Also, R-side random effects cannot be accommodated with the NLMIXED procedure.</P>
<P align=left>The GLIMMIX procedure, on the other hand, determines the marginal log</P>
<P align=left>likelihood as that of an approximate linear mixed model. This allows multiple random</P>
<P align=left>effects, nested and crossed random effects, multiple cluster types, and R-side</P>
<P align=left>random components. The disadvantage is a doubly iterative fitting algorithm and the</P>
<P align=left>absence of a true log likelihood.</P>
<P align=left>The LOGISTIC and CATMOD procedures also fit generalized linear models but accommodate</P>
<P align=left>the independence case only. Binary, binomial, multinomial models for</P>
<P align=left>ordered data, and generalized logit models that can be fit with PROC LOGISTIC,</P>
<P align=left>can also be fit with the GLIMMIX procedure. The diagnostic tools and capabilities</P>
<P align=left>specific to such data implemented in the LOGISTIC procedure go beyond the</P>
<P align=left>capabilities of the GLIMMIX procedure.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>11</P></FONT><B><FONT face=NimbusSanL-Bold color=#00009a size=5>
<P align=left>Getting Started</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=4>
<P align=left>Logistic Regressions with Random Intercepts</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Researchers investigated the performance of two medical procedures in a multicenter</P>
<P align=left>study. They randomly selected 15 centers for inclusion. One of the study goals</P>
<P align=left>was to compare the occurrence of side effects for the procedures. In each center </FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMMI8 size=1>A</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>patients were randomly selected and assigned to procedure “A,” and </FONT><FONT face=CMMI10 size=3>n</FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=NimbusRomNo9L-Regu size=3>patients were</P>
<P align=left>randomly assigned to procedure “B”. The following DATA step creates the data set</P>
<P align=left>for the analysis.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>data multicenter;</P>
<P align=left>input center group$ n sideeffect;</P>
<P align=left>datalines;</P>
<P align=left>1 A 32 14</P>
<P align=left>1 B 33 18</P>
<P align=left>2 A 30 4</P>
<P align=left>2 B 28 8</P>
<P align=left>3 A 23 14</P>
<P align=left>3 B 24 9</P>
<P align=left>4 A 22 7</P>
<P align=left>4 B 22 10</P>
<P align=left>5 A 20 6</P>
<P align=left>5 B 21 12</P>
<P align=left>6 A 19 1</P>
<P align=left>6 B 20 3</P>
<P align=left>7 A 17 2</P>
<P align=left>7 B 17 6</P>
<P align=left>8 A 16 7</P>
<P align=left>8 B 15 9</P>
<P align=left>9 A 13 1</P>
<P align=left>9 B 14 5</P>
<P align=left>10 A 13 3</P>
<P align=left>10 B 13 1</P>
<P align=left>11 A 11 1</P>
<P align=left>11 B 12 2</P>
<P align=left>12 A 10 1</P>
<P align=left>12 B 9 0</P>
<P align=left>13 A 9 2</P>
<P align=left>13 B 9 6</P>
<P align=left>14 A 8 1</P>
<P align=left>14 B 8 1</P>
<P align=left>15 A 7 1</P>
<P align=left>15 B 8 0</P>
<P align=left>;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variable </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>identifies the two procedures, </FONT><FONT face=NimbusSanL-Regu size=3>n </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the number of patients who</P>
<P align=left>received a given procedure in a particular center, and </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the number of</P>
<P align=left>patients who reported side effects.</P>
<P align=left>If </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iB </FONT><FONT face=NimbusRomNo9L-Regu size=3>denote the number of patients in center </FONT><FONT face=CMMI10 size=3>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>who report side effects for</P>
<P align=left>procedures </FONT><FONT face=CMMI10 size=3>A </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, respectively, then—for a given center—these are independent</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>12 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>binomial random variables. To model the probability of side effects for the two drugs,</P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iB</FONT><FONT face=NimbusRomNo9L-Regu size=3>, you need to account for the fixed group effect and the random selection</P>
<P align=left>of centers. One possibility is to assume a model that relates group and center effects</P>
<P align=left>linearly to the logit of the probabilities:</P></FONT><FONT face=CMR10 size=3>
<P align=left>log</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iA</P></FONT><FONT face=CMR10 size=3>
<P align=left>1 </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMR10 size=3>
<P align=left>= </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI8 size=1>i</P></FONT><FONT face=CMR10 size=3>
<P align=left>log</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMMI8 size=1>iB</P></FONT><FONT face=CMR10 size=3>
<P align=left>1 </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iB</P></FONT><FONT face=CMEX10 size=3>
<P align=left></P></FONT><FONT face=CMR10 size=3>
<P align=left>= </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI8 size=1>i</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>In this model, </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=NimbusRomNo9L-Regu size=3>measures the difference in the logits of experiencing side</P>
<P align=left>effects, and the </FONT><FONT face=CMMI8 size=1>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>are independent random variables due to the random selection</P>
<P align=left>of centers. If you think of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=NimbusRomNo9L-Regu size=3>as the overall intercept in the model, then the </FONT><FONT face=CMMI8 size=1>i </FONT><FONT face=NimbusRomNo9L-Regu size=3>are</P>
<P align=left>random intercept adjustments. Observations from the same center receive the same</P>
<P align=left>adjustment, and these vary randomly from center to center with variance var</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI8 size=1>i</FONT><FONT face=CMR10 size=3>] =</P></FONT><FONT face=CMMI10 size=3>
<P align=left></FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=CMMI8 size=1>
<P align=left>c </FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>Since </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>is the conditional mean of the sample proportion, E</FONT><FONT face=CMR10 size=3>[</FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMSY10 size=3>|</FONT><FONT face=CMMI8 size=1>i</FONT><FONT face=CMR10 size=3>] = </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=NimbusRomNo9L-Regu size=3>,</P>
<P align=left>you can model the sample proportions as binomial ratios in a generalized linear mixed</P>
<P align=left>model. The following statements request this analysis under the assumption of normally</P>
<P align=left>distributed center effects with equal variance and a logit link function.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>proc glimmix data=multicenter;</P>
<P align=left>class center group;</P>
<P align=left>model sideeffect/n = group / solution;</P>
<P align=left>random intercept / subject=center;</P>
<P align=left>run;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The PROC GLIMMIX statement invokes the procedure. The CLASS statement instructs</P>
<P align=left>the procedure to treat the variables </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>as classification variables.</P>
<P align=left>The MODEL statement specifies the response variable as a sample proportion</P>
<P align=left>using the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax. In terms of the previous formulas, </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect/n </FONT><FONT face=NimbusRomNo9L-Regu size=3>corresponds</P>
<P align=left>to </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iA</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iA </FONT><FONT face=NimbusRomNo9L-Regu size=3>for observations from Group A and to </FONT><FONT face=CMMI10 size=3>Y</FONT><FONT face=CMMI8 size=1>iB</FONT><FONT face=CMMI10 size=3>/n</FONT><FONT face=CMMI8 size=1>iB </FONT><FONT face=NimbusRomNo9L-Regu size=3>for observations</P>
<P align=left>from Group B. The SOLUTION option in the MODEL statement requests a listing</P>
<P align=left>of the solutions for the fixed-effects parameter estimates. Note that because of the</P></FONT><FONT face=NimbusRomNo9L-ReguItal size=3>
<P align=left>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, the GLIMMIX procedure defaults to the binomial distribution,</P>
<P align=left>and that distribution’s default link is the logit link. The RANDOM statement specifies</P>
<P align=left>that the linear predictor contains an intercept term that randomly varies at the</P>
<P align=left>level of the </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect. In other words, a random intercept is drawn separately and</P>
<P align=left>independently for each center in the study.</P>
<P align=left>The results of this analysis are shown in the following tables.</P>
<P align=left>The “Model Information Table” in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 1 </FONT><FONT face=NimbusRomNo9L-Regu size=3>summarizes important information about</P>
<P align=left>the model you fit and about aspects of the estimation technique.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>13</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>The GLIMMIX Procedure</P>
<P align=left>Model Information</P>
<P align=left>Data Set WORK.MULTICENTER</P>
<P align=left>Response Variable (Events) sideeffect</P>
<P align=left>Response Variable (Trials) n</P>
<P align=left>Response Distribution Binomial</P>
<P align=left>Link Function Logit</P>
<P align=left>Variance Function Default</P>
<P align=left>Variance Matrix Blocked By center</P>
<P align=left>Estimation Technique Residual PL</P>
<P align=left>Degrees of Freedom Method Containment</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 1. </B></FONT><FONT face=NimbusSanL-Regu size=2>Model Information</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>PROC GLIMMIX recognizes the variables </FONT><FONT face=NimbusSanL-Regu size=3>sideeffect </FONT><FONT face=NimbusRomNo9L-Regu size=3>and </FONT><FONT face=NimbusSanL-Regu size=3>n </FONT><FONT face=NimbusRomNo9L-Regu size=3>as the numerator and</P>
<P align=left>denominator in the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trials </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, respectively. The distribution—conditional</P>
<P align=left>on the random center effects—is binomial. The marginal variance matrix is blockdiagonal,</P>
<P align=left>and observations from the same center form the blocks. The default estimation</P>
<P align=left>technique in generalized linear mixed models is residual pseudo-likelihood with</P>
<P align=left>a subject-specific expansion (METHOD=RSPL).</P>
<P align=left>In </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 2</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the “Class Level Information” table lists the levels of the variables</P>
<P align=left>specified in the CLASS statement and the ordering of the levels. The “Number of</P>
<P align=left>Observations” table displays the number of observations read and used in the analysis.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Class Level Information</P>
<P align=left>Class Levels Values</P>
<P align=left>center 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15</P>
<P align=left>group 2 A B</P>
<P align=left>Number of Observations Read 30</P>
<P align=left>Number of Observations Used 30</P>
<P align=left>Number of Events 155</P>
<P align=left>Number of Trials 503</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 2. </B></FONT><FONT face=NimbusSanL-Regu size=2>Class Level Information and Number of Observations</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There are two variables listed in the CLASS statement. The </FONT><FONT face=NimbusSanL-Regu size=3>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable has</P>
<P align=left>fifteen levels, and the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable has two levels. Since the response is specified</P>
<P align=left>through the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>events/trial </FONT><FONT face=NimbusRomNo9L-Regu size=3>syntax, the “Number of Observations” table also contains the</P>
<P align=left>total number of events and trials used in the analysis.</P>
<P align=left>The “Dimensions” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 3 </FONT><FONT face=NimbusRomNo9L-Regu size=3>lists the size of relevant matrices.</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>14 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Dimensions</P>
<P align=left>G-side Cov. Parameters 1</P>
<P align=left>Columns in X 3</P>
<P align=left>Columns in Z per Subject 1</P>
<P align=left>Subjects (Blocks in V) 15</P>
<P align=left>Max Obs per Subject 2</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 3. </B></FONT><FONT face=NimbusSanL-Regu size=2>Dimensions</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There are three columns in the </FONT><FONT face=CMBX10 size=3>X </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix, corresponding to an intercept and the two</P>
<P align=left>levels of the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>variable. For each subject (center), the </FONT><FONT face=CMBX10 size=3>Z </FONT><FONT face=NimbusRomNo9L-Regu size=3>matrix contains only an</P>
<P align=left>intercept column.</P>
<P align=left>The “Optimization Information” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 4 </FONT><FONT face=NimbusRomNo9L-Regu size=3>provides information about the</P>
<P align=left>methods and size of the optimization problem.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Optimization Information</P>
<P align=left>Optimization Technique Dual Quasi-Newton</P>
<P align=left>Parameters in Optimization 1</P>
<P align=left>Lower Boundaries 1</P>
<P align=left>Upper Boundaries 0</P>
<P align=left>Fixed Effects Profiled</P>
<P align=left>Starting From Data</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 4. </B></FONT><FONT face=NimbusSanL-Regu size=2>Optimization Information</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The default optimization technique for generalized linear mixed models is the Quasi-</P>
<P align=left>Newton method. Because a residual likelihood technique is used to compute the objective</P>
<P align=left>function, only the covariance parameters are participating in the optimization.</P>
<P align=left>A lower boundary constraint is placed on the variance component for the random</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>center </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect. The solution for this variance cannot be less than zero.</P>
<P align=left>The “Iteration History” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 5 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays information about the progress of</P>
<P align=left>the optimization process.</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>15</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Iteration History</P>
<P align=left>Objective Max</P>
<P align=left>Iteration Restarts Subiterations Function Change Gradient</P>
<P align=left>0 0 5 79.688580269 0.11807224 7.851E-7</P>
<P align=left>1 0 3 81.294622554 0.02558021 8.209E-7</P>
<P align=left>2 0 2 81.438701534 0.00166079 4.061E-8</P>
<P align=left>3 0 1 81.444083567 0.00006263 2.311E-8</P>
<P align=left>4 0 1 81.444265216 0.00000421 0.000025</P>
<P align=left>5 0 1 81.444277364 0.00000383 0.000023</P>
<P align=left>6 0 1 81.444266322 0.00000348 0.000021</P>
<P align=left>7 0 1 81.44427636 0.00000316 0.000019</P>
<P align=left>8 0 1 81.444267235 0.00000287 0.000017</P>
<P align=left>9 0 1 81.444275529 0.00000261 0.000016</P>
<P align=left>10 0 1 81.44426799 0.00000237 0.000014</P>
<P align=left>11 0 1 81.444274843 0.00000216 0.000013</P>
<P align=left>12 0 1 81.444268614 0.00000196 0.000012</P>
<P align=left>13 0 1 81.444274277 0.00000178 0.000011</P>
<P align=left>14 0 1 81.444269129 0.00000162 9.772E-6</P>
<P align=left>15 0 0 81.444273808 0.00000000 9.102E-6</P>
<P align=left>Convergence criterion (PCONV=1.11022E-8) satisfied.</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 5. </B></FONT><FONT face=NimbusSanL-Regu size=2>Iteration History and Convergence Status</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>After the initial optimization, the GLIMMIX procedure performed 15 updates before</P>
<P align=left>the convergence criterion was met. At convergence, the largest absolute value of the</P>
<P align=left>gradient was near zero. This indicates that the process stopped at an extremum of the</P>
<P align=left>objective function.</P>
<P align=left>The “Fit Statistics” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 6 </FONT><FONT face=NimbusRomNo9L-Regu size=3>lists information about the fitted model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Fit Statistics</P>
<P align=left>-2 Res Log Pseudo-Likelihood 81.44</P>
<P align=left>Generalized Chi-Square 30.69</P>
<P align=left>Gener. Chi-Square / DF 1.10</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 6. </B></FONT><FONT face=NimbusSanL-Regu size=2>Fit Statistics</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Twice the negative of the residual log lilikelihood in the final pseudo-model equaled</P>
<P align=left>81.44. The ratio of the generalized chi-square statistic and its degrees of freedom is</P>
<P align=left>close to 1. This is a measure of the residual variability in the marginal distribution of</P>
<P align=left>the data.</P>
<P align=left>The “Covariance Parameter Estimates” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 7 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays estimates and</P>
<P align=left>asymptotic estimated standard errors for all covariance parameters.</P></FONT><FONT face=NimbusSanL-Regu size=3>
<P align=left>16 </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-ReguItal size=3>The GLIMMIX Procedure</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Covariance Parameter Estimates</P>
<P align=left>Standard</P>
<P align=left>Cov Parm Subject Estimate Error</P>
<P align=left>Intercept center 0.6176 0.3181</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 7. </B></FONT><FONT face=NimbusSanL-Regu size=2>Covariance Parameter Estimates</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The variance of the random center intercepts on the logit scale is estimated as </FONT><FONT face=CMEX10 size=3>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>2</P></FONT><FONT face=CMMI8 size=1>
<P align=left>c </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>6176</FONT><FONT face=NimbusRomNo9L-Regu size=3>.</P>
<P align=left>The “Parameter Estimates” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 8 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays the solutions for the fixed effects</P>
<P align=left>in the model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Solutions for Fixed Effects</P>
<P align=left>Standard</P>
<P align=left>Effect group Estimate Error DF t Value Pr &gt; |t|</P>
<P align=left>Intercept -0.8071 0.2514 14 -3.21 0.0063</P>
<P align=left>group A -0.4896 0.2034 14 -2.41 0.0305</P>
<P align=left>group B 0 . . . .</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 8. </B></FONT><FONT face=NimbusSanL-Regu size=2>Parameter Estimates</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Because of the fixed-effects parameterization used in the GLIMMIX procedure, the</P>
<P align=left>“Intercept” effect is an estimate of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMR8 size=1>0 </FONT><FONT face=CMR10 size=3>+ </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, and the “A” group effect is an estimate</P>
<P align=left>of </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMSY10 size=3>− </FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B</FONT><FONT face=NimbusRomNo9L-Regu size=3>, the log-odds ratio. The associated estimated probabilities of side effects</P>
<P align=left>in the two groups are</P></FONT><FONT face=CMEX10 size=3>
<P align=left>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>A </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>1</P>
<P align=left>1 + exp</FONT><FONT face=CMSY10 size=3>{</FONT><FONT face=CMR10 size=3>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>8071 + 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>4896</FONT><FONT face=CMSY10 size=3>}</P></FONT><FONT face=CMR10 size=3>
<P align=left>= 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>2147</P></FONT><FONT face=CMEX10 size=3>
<P align=left>b</FONT><FONT face=CMMI10 size=3></FONT><FONT face=CMMI8 size=1>B </FONT><FONT face=CMR10 size=3>=</P>
<P align=left>1</P>
<P align=left>1 + exp</FONT><FONT face=CMSY10 size=3>{</FONT><FONT face=CMR10 size=3>0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>8071</FONT><FONT face=CMSY10 size=3>}</P></FONT><FONT face=CMR10 size=3>
<P align=left>= 0</FONT><FONT face=CMMI10 size=3>.</FONT><FONT face=CMR10 size=3>3085</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>There is a significant difference between the two groups (</FONT><FONT face=CMMI10 size=3>p</FONT><FONT face=NimbusRomNo9L-Regu size=3>=0.0305).</P>
<P align=left>The “Type III Tests of Fixed Effect” table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 9 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays significance tests for</P>
<P align=left>the fixed effects in the model.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>Type III Tests of Fixed Effects</P>
<P align=left>Num Den</P>
<P align=left>Effect DF DF F Value Pr &gt; F</P>
<P align=left>group 1 14 5.79 0.0305</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 9. </B></FONT><FONT face=NimbusSanL-Regu size=2>Type III Tests of Fixed Effects</P></FONT><FONT face=NimbusSanL-ReguItal size=3>
<P align=left>Logistic Regressions with Random Intercepts </FONT><FONT face=MSAM5 color=#00009a size=1> </FONT><FONT face=NimbusSanL-Regu size=3>17</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>Because the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect has only two levels, the </FONT><FONT face=NimbusRomNo9L-ReguItal size=3>p</FONT><FONT face=NimbusRomNo9L-Regu size=3>-value for the effect is the same as</P>
<P align=left>in the “Parameter Estimates” table, and the “</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>F </FONT><FONT face=NimbusRomNo9L-Regu size=3>Value” is the square of the “</FONT><FONT face=NimbusRomNo9L-ReguItal size=3>t </FONT><FONT face=NimbusRomNo9L-Regu size=3>Value”</P>
<P align=left>shown there.</P>
<P align=left>You can produce the estimates of the average logits in the two groups and their predictions</P>
<P align=left>on the scale of the data with the LSMEANS statement in PROC GLIMMIX.</P></FONT><B><FONT face=NimbusMonL-Bold size=2>
<P align=left>ods select lsmeans;</P>
<P align=left>proc glimmix data=multicenter;</P>
<P align=left>class center group;</P>
<P align=left>model sideeffect/n = group / solution;</P>
<P align=left>random intercept / subject=center;</P>
<P align=left>lsmeans group / cl ilink;</P>
<P align=left>run;</P></B></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The LSMEANS statement requests the least-squares means of the </FONT><FONT face=NimbusSanL-Regu size=3>group </FONT><FONT face=NimbusRomNo9L-Regu size=3>effect on the</P>
<P align=left>logit scale. The CL option requests their confidence limits. The ILINK option adds</P>
<P align=left>estimates, standard errors, and confidence limits on the mean (probability) scale. The</P>
<P align=left>table in </FONT><FONT face=NimbusRomNo9L-Regu color=#00339a size=3>Figure 10 </FONT><FONT face=NimbusRomNo9L-Regu size=3>displays the results.</P></FONT><B><FONT face=NimbusMonL-Bold size=1>
<P align=left>The GLIMMIX Procedure</P>
<P align=left>group Least Squares Means</P>
<P align=left>Standard</P>
<P align=left>group Estimate Error DF t Value Pr &gt; |t| Alpha Lower Upper</P>
<P align=left>A -1.2966 0.2601 14 -4.99 0.0002 0.05 -1.8544 -0.7388</P>
<P align=left>B -0.8071 0.2514 14 -3.21 0.0063 0.05 -1.3462 -0.2679</P>
<P align=left>group Least Squares Means</P>
<P align=left>Standard</P>
<P align=left>Error Lower Upper</P>
<P align=left>group Mean Mean Mean Mean</P>
<P align=left>A 0.2147 0.04385 0.1354 0.3233</P>
<P align=left>B 0.3085 0.05363 0.2065 0.4334</P></FONT><FONT face=NimbusSanL-Bold color=#00009a size=2>
<P align=left>Figure 10. </B></FONT><FONT face=NimbusSanL-Regu size=2>Least-squares Means</P></FONT><FONT face=NimbusRomNo9L-Regu size=3>
<P align=left>The “Estimate” column displays the least-squares mean estimate on the logit scale,</P>
<P align=left>and the “Mean” column represents its mapping onto the probability scale. The</P>
<P align=left>“Lower” and “Upper” columns are 95% confidence limits for the logits in the two</P>
<P align=left>groups. The “Lower Mean” and “Upper Mean” columns are the corresponding confidence</P>
<P align=left>limits for the probabilities of side effects. These limits are obtained by inversely</P>
<P align=left>linking the confidence bounds on the linear scale, and thus are not symmetric</P>
<P>about the estimate of the probabilities.</P></FONT></FONT>

[此贴子已经被作者于2007-9-16 0:27:22编辑过]

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 精彩帖子

总评分: 经验 + 3  论坛币 + 10   查看全部评分

藤椅
geokaran 发表于 2013-3-14 00:03:07
good

您需要登录后才可以回帖 登录 | 我要注册

客服
GMT+8, 2026-11-30 21:57