For the latest version of JMP Help, visit JMP.com/help.


Fitting Linear Models > Generalized Linear Mixed Models > Launch the Generalized Linear Mixed Model Personality
Publication date: 05/05/2023

Image shown hereLaunch the Generalized Linear Mixed Model Personality

Launch the Generalized Linear Mixed Model personality by selecting Analyze > Fit Model, entering one or more columns for Y, and selecting Generalized Linear Mixed Model from the Personality menu.

Image shown hereFit Model Launch Window

You can specify models with fixed effects, random effects, or a combination of fixed and random effects. You can also specify a distribution for the response variable. The options in the launch window differ based on the nature of the model that you specify. For more information about the options in the Select Columns red triangle menu, see Column Filter Menu in Using JMP.

When fitting models using the Generalized Linear Mixed Model personality, you can allow unbounded variance components. This means that variance components that have negative estimates are not reported as zero. This option is selected by default. It should remain selected if you are interested in fixed effects, because bounding the variance estimates at zero leads to bias in the tests for fixed effects. See “Negative Variances” for more information about the Unbounded Variance Components option.

Figure 9.6 Fit Model Launch Window with Generalized Linear Mixed Model Selected 

Fit Model Launch Window with Generalized Linear Mixed Model Selected

For more information about aspects of the Fit Model window that are common to all personalities, see Model Specification. For more information about the options in the Select Columns red triangle menu, see Column Filter Menu in Using JMP. Information specific to the Generalized Linear Mixed Model personality is presented here.

Image shown hereSpecify a Distribution

In the Fit Model launch window, when you select Generalized Linear Mixed Model as the Personality, the Distribution option appears. Here you can specify a distribution for Y. The available distributions are described below.

Binomial

Specifies that Y has a binomial distribution with parameters p and n. The response, Y, indicates the total number of successes in n independent trials with a fixed probability, p, for all trials. This distribution allows for the use of a sample size column. If no column is listed, it is assumed that the sample size is one. The link function for p is the logit. When you select a binary response variable that has a Nominal modeling type, Binomial is the only available response distribution.

When you select Binomial as the Distribution, the response variable must be specified in one of the following ways.

Unsummarized: If your data are not summarized as frequencies of events, specify a single binary column as the response. If this column has a modeling type of Nominal, you can designate one of the levels to be the Target Level. The default Target Level value is the higher of the two levels based on the order of the levels.

Summarized with sample size column entered as second Y: If your data are summarized as frequencies of events (successes) and trials, specify two continuous columns as Y in this order: the count of the number of successes, and the count of the number of trials.

Poisson

Specifies that Y has a Poisson distribution with mean λ. The Poisson distribution typically models the number of events in a given interval and is often expressed as count data. The link function for λ is the logarithm. Poisson regression is permitted even if Y assumes non-integer values.

Image shown hereFixed Effects Tab

Add all fixed effects on the Fixed Effects tab. Use the Add, Cross, Nest, Macros, and Attributes options as needed. For more information about these options, see Model Specification. Note that it is possible to have no fixed effects in the model.

Note: If a continuous column is involved in a random effect, that column is not centered, even if the Center Polynomials option in the Model Specifications red triangle menu is selected.

Figure 9.7 Completed Fit Model Launch Window Showing Fixed Effects 

Completed Fit Model Launch Window Showing Fixed Effects

Image shown hereRandom Effects Tab

Specify traditional variance component models and random coefficients models using the Random Effects tab.

Note: If a continuous column is involved in a random effect, that column is not centered, even if the Center Polynomials option in the Model Specifications red triangle menu is selected.

Variance Components

For a traditional variance component model, specify terms such as random blocks, whole plot error terms, and subplot error terms using the Add, Cross, or Nest options. For more information about these options, see Model Specification.

Figure 9.8 Completed Fit Model Launch Window Showing Random Effects 

Completed Fit Model Launch Window Showing Random Effects

Random Coefficients

To construct random coefficients models, use the Nest Random Coefficients button to create groups of random coefficients.

1. Select the continuous columns from the Select Columns list that are predictors.

2. Select the Random Effects tab and then Add.

3. Select these effects in the Random Effects tab. Also select the column that contains the random effect whose levels define the individual regression models.

4. Click the Nest Random Coefficients button.

This last step creates random intercept and random slope effects that are correlated within the levels of the random effect. The subject is nested within the other effects due to the variability among subjects. If you believed that the intercept might be fixed for all groups, you would select Intercept[<group>]&Random Coefficients(1) and then click Remove.

You can define multiple groups of random coefficients in this fashion, as in hierarchical linear models. This might be necessary when you have both a random batch effect and a random batch by treatment effect on the slope and intercept coefficients. This might also be necessary in a hierarchical linear model: when you have a random student effect and random school effect on achievement scores and students are nested within school.

Image shown hereData Format

The Generalized Linear Mixed Model personality of the Fit Model platform requires that all response measurements be contained in one response column. Repeated measures data are sometimes recorded in multiple columns, where each row is a subject and the repeated measurements are recorded in separate response columns. Data that are in this format must be stacked before running the Generalized Linear Mixed Model personality. The Cholesterol.jmp and Cholesterol Stacked.jmp sample data tables illustrate the wide format and the stacked format, respectively. Notice that each row in the wide table corresponds to one level of Patient in the stacked table.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).