Gradient of the HLM loglikelihood.
chlm_grad(beta, gamma, y, delta, X, Z)
| beta | Mean parameter vector of length |
|---|---|
| gamma | Variance parameter vector of length |
| y | Vector of observations of length |
| delta | Optional logical vector of length |
| X | Mean covariate matrix of size |
| Z | Variance covariate matrix of size |
Vector of length p+q returning the gradient of the loglikelihood at the parameter values.