# Hierarchical generalized linear model

In statistics, hierarchical generalized linear models (HGLM) can be considered as an extension to generalized linear models. In generalized linear models, the error components are assumed to be independent.[1] However, this assumption does not hold in some situations, which means there exist dependencies among these error terms. Hierarchical generalized linear model allows different error components.[2] The error components can be correlated and not necessarily follow Normal distribution. When there are different clusters, that is, groups of observations, the observations in the same cluster are correlated. In fact, they are positively correlated because observations in the same cluster share some common features. In this situation, using generalized linear models and ignoring the correlated may cause problems.[3]

## Overview and model

### Model

In a hierarchical model, observations are grouped into clusters, and the distribution of an observation is determined not only by common structure among all clusters but also by the specific structure of the cluster where this observation belongs. So random effect component, different for different clusters, is introduced into the model. Let $y$ be the response, $u$ be the random effect, $g$ be the link function, $\eta = X \beta$, and $v = v(u)$ is some strictly monotone function of $u$. In a hierarchical generalized linear model, the assumption on $y|u$ and $u$ need to be made:[2] $y\mid u \sim\ f(\theta,\,\phi)$ and $u \sim\ f_u(\alpha).$

The linear predictor is in the form:

$g(E(y)) = g(\mu) = \eta = X \beta + v \,$

where $g$ is the link function, $\mu = E(y)$, $\eta = X \beta + v$, and $v = v(u)$ is a monotone function of $u$. In this hierarchical generalized linear model, the fixed effect is described by $\beta$, which is the same for all observations. The random component $u$ is unobserved and varies among clusters randomly. So $u$ takes the same value for observations in the same cluster and different values for observations in different clusters. [3]

### Identifiability

Identifiability in a concept in statistics. In order to perform parameter inference, it is necessary to make sure that the identifiability property holds.[4] In the model stated above, the location of v is not identifiable, since

$X \beta + v = (X \beta + a) + (v - a) \,$

for constant $a$.[2] In order to make the model identifiable, we need to impose constraints on parameters. The constraint is usually imposed on random effects, such as $E(v)=0$.[2]

### Models with different distributions and link functions

By assuming different distributions of $y\mid u$ and $u$, and using different functions of $g$ and '$v$, we will be able to obtain different models. Moreover, generalized linear mixed model is a special case of hierarchical generalized linear model. In hierarchical generalized linear models, the distributions of random effect $u$ do not necessarily follow normal distribution. If the distribution of $u$ is normal and the link function of $v$ is the identity function, then hierarchical generalized linear model is the same as generalized linear mixed model(GLMM).[2]

Distributions of $y\mid u$ and $u$ can also be chosen to be conjugate, since nice properties hold and it is easier for computation and interpretation.[2] For example, if the distribution of $y\mid u$ is Poisson with certain mean, the distribution of $u$ is Gamma, and canonical log link is used, then we call the model Poisson conjugate HGLM. If $y\mid u$ follows binomial distribution with certain mean, $u$ has the conjugate beta distribution, and canonical logit link is used, then we call the model Beta conjugate model. Moreover, the mixed linear model is in fact the normal conjugate HGLM.[2]

A summary of commonly used models are:[5]

Commonly used models
Model name distribution of y Link function between y and u distribution of u Link function between u and v
Normal conjugate Normal Identity Normal Identity
Binomial conjugate Binomial Logit Beta Logit
Poisson conjugate Poisson Log Gamma Log
Gamma conjugate Gamma Reciprocal Inv-gamma Reciprocal
Binomial GLMM Binomial Logit Normal Identity
Poisson GLMM Poisson Log Normal Identity
Gamma GLMM Gamma Log Normal Identity

## Fitting the hierarchical generalized linear models

Hierarchical generalized linear models are used when observations come from different clusters. There are two types of estimators: fixed effect estimators and random effect estimators, corresponding to parameters in : $\eta = \mathbf{x}\boldsymbol\beta$ and in $\mathbf{v(u)}$ , respectively. There are different ways to obtain parameter estimates for a hierarchical generalized linear model. If only fixed effect estimators are of interests, the population-averaged model can be used. If inference is focused on individuals, random effects will have to be estimated.[3] There are different techniques to fit a hierarchical generalized linear model.

## Examples and applications

Hierarchical generalized linear model have been used to solve different real-life problems.

### Engineering

For example, this method was used to analyze semiconductor manufacturing, because interrelated processes form a complex hierarchy.[6] Semiconductor fabrication is a complex process which requires different interrelated processes.[7] Hierarchical generalized linear model, requiring clustered data,is able to deal with complicated process. Engineers can use this model to find out and analyze important subprocesses, and at the same time, evaluate the influences of these subprocesses on final performance. [6]