In statistics, random effects estimation is an estimation method used for the coefficients in multiple comparisons model in which the effects of different classes are random. In econometrics, random effects models are used in analysis of hierarchical or panel data when one assumes no fixed effects (i.e. no individual effects). The estimation can be done done via generalized least squares (GLS). If we assume random effects the error term in the model
where is the dependent variable, is the vector of regressors, is the vector of coefficients, are the random effects, and is the error term, then should have a normal distribution with mean zero and a constant variance.
The coefficients can be estimated via
where X and Y are the matrix version of the regressor and independent variable, respectively, is the identity matrix, is the variance of and , and is the variance-covariance matrix.