The best estimated result (with the smallest AIC value) in the model \(x_{ij} = \alpha + \beta z_k + \Gamma v_{ij} + \varepsilon_{ij} \) obtained through the EM algorithm (Zhang et al., 2023),
where the upper-level unit is indexed by \(i\), and the lower-level unit is indexed by \(j\).
- p
The estimates for the parameter \(\pi_k\), which is a vector of length \(K\).
- alpha
The estimates for the parameter \(\alpha\), which is a vector of length \(m\).
- z
The estimates for the parameter \(z_k\), which is a vector of length \(K\).
- beta
The estimates for the parameter \(\beta\), which is a vector of length \(m\).
- gamma
The estimates for the parameter \(\Gamma\), which is a matrix.
- sigma
The estimates for the parameter \(\Sigma_k\).
When var_fun = 1, \(\Sigma_k\) is a diagonal matrix and \(\Sigma_k = \Sigma\), and we obtain a vector of the diagonal elements;
When var_fun = 2, \(\Sigma_k\) is a diagonal matrix, and we obtain K vectors of the diagonal elements.
- W
The posterior probability matrix.
- loglikelihood
The approximated log-likelihood of the fitted model.
- disparity
The disparity (-2logL) of the fitted model.
- number_parameters
The number of parameters estimated in the EM algorithm.
- AIC
The AIC value (-2logL + 2number_parameters).
- aic_data
All AIC values in each run.
- Starting_values
Lists of starting values for parameters used in each num_runs.
It allows reproduction of the best result (obtained from mult.reg_2level) in a single run
using mult.em_2level by setting start equal to the list of starting values
that were used to obtain the best result in mult.reg_2level.