For example, I would like to fit a logistic mixed-effects model.
This article fitting glmm talks about how to fit fixed effects as well as variance covariance matrix of random effects. Theoretically we can use maximum likelihood estimator like this.
But I do not know how to compute the empirical random effects for all groups. In linear mixed-effects model, we can calculate EBLUPS(empirical best linear unbiased predictors) of random effects easily. In generalized linear model, the only method I know is to calculate the posterior distribution of random effects for each group, i.e. $(b_i|x_{it},\beta, y_{it})$, and then calculate the maximum likelihood estimator for each group.
Is there any better method?
In addition, why don't people maximize the joint distribution of $(y_{it}, \beta, b_i, \Sigma_b)$? In this way we can get all the estimates together.