This is a follow-up question to a question I posted earlier. Obviously, maximum-likelihood estimation of mixed-effects models requires the joint density function.
Let us assume a two-level mixed effects model:
$y = X\beta+Zu+e$
where $y$ is a vector of n observable random variables, $\beta$ is a vector of $p$ fixed effects, $X$ and $Z$ are known matrices, and $u$ and $e$ re vectors of $q$ and $n$ random effects such that $E(u) = 0$ and $E(e) = 0$ and
$ Var \begin{bmatrix} u \\ e \\ \end{bmatrix} = \begin{bmatrix} G & 0 \\ 0 & R \\ \end{bmatrix}\sigma^2$
where $G$ and $R$ are known positive definite matrices and $\sigma^2$ is a positive constant. The joint density we require to estimate $u$ and $\beta$ is
$f(y,u) = (2\pi\sigma^2)^{-1/2n-1/2q}(det \begin{bmatrix} G & 0 \\ 0 & R \\ \end{bmatrix})^{-1/2}\times\\ exp(-\frac 1{2\sigma^2} \begin{pmatrix} u \\ y-x\beta-Zu \\ \end{pmatrix}' \begin{bmatrix} G & 0 \\ 0 & R \\ \end{bmatrix}^{-1} \begin{pmatrix} u \\ y-x\beta-Zu \\ \end{pmatrix}).$
Now, let us assume a three-level mixed effects model:
$y = X\beta+Zu_{2}+Wu_{3}+e$
where $y$ is a vector of n observable random variables, $\beta$ is a vector of $p$ fixed effects, $X$, $Z$, and $W$ are known matrices, and $u_{2}$, $u_{3}$ as well as $e$ are vectors of $q$, $k$, and $n$ random effects such that $E(u_{2}) = 0$, $E(u_{3}) = 0$ and $E(e) = 0$ and
$ Var \begin{bmatrix} u_{2} \\ u_{3} \\ e \\ \end{bmatrix} = \begin{bmatrix} G & 0 & 0 \\ 0 & K & 0\\ 0 & 0 & R \\ \end{bmatrix}\sigma^2$
where $G$, $K$, and $R$ are known positive definite matrices and $\sigma^2$ is a positive constant. The subscripts of $u$ indicate the level of the random effect.
Would the joint density then be
$f(y,u_{2},u_{3}) = (2\pi\sigma^2)^{-1/2n-1/2q-1/2k}(det \begin{bmatrix} G & 0 & 0 \\ 0 & K & 0\\ 0 & 0 & R \\ \end{bmatrix})^{-1/2}\times\\ exp(-\frac 1{2\sigma^2} \begin{pmatrix} u_{2}\\u_{3} \\ y-x\beta-Zu \\ \end{pmatrix}' \begin{bmatrix} G & 0 & 0 \\ 0 & K & 0\\ 0 & 0 & R \\ \end{bmatrix}^{-1} \begin{pmatrix} u_{2}\\ u_{3} \\ y-x\beta-Zu \\ \end{pmatrix})?$