I am trying to joint model longitudinal data with informative observation times. Taking the simpler case, where the outcome and time processes are associated through a random intercept, I already wrote the code to get the EM-algorithm estimates.
Now, I want to calculate the standard errors and p-values of the fixed effects estimates. I am assuming $Var(\hat{\beta})=(X^T V X)^{(-1)}$ with $V=DGD^T+\sigma^2I$. $D$ denotes the random effects design matrix, while G represents the random effects covariance matrix.
All I have are the estimates of the coefficients. How can I get the standard errors for the fixed effects? How to get $D$ and $G$?