Hessian \(\mathbf{H}\) of the unconstrained log-likelihood
Source:R/03_03_DeCovarT_estimate_ratios_frequentist.R
hessian_loglik_unconstrained.RdAnalytic Hessian \(\mathbf{H}\in\mathcal{M}_{J\times J}\) with entries \(\mathbf{H}_{i,j}=\partial^{2}\ell/(\partial p_i\partial p_j)\), matching the matricial formulae of the article (quadratic forms in \(\boldsymbol{\Theta}\), \(\boldsymbol{\Sigma}_i\), \(\boldsymbol{\mu}_{\cdot i}\) and residual \(\boldsymbol{r}=\boldsymbol{y}-\boldsymbol{\mu}\boldsymbol{p}\)).
Arguments
- p
Numeric vector \(\boldsymbol{p}\in\mathbb{R}^{J}\).
- y
Numeric vector (or one-column matrix) \(\boldsymbol{y}\in\mathbb{R}^{G}\).
- mean_signature_matrix
Numeric matrix \(\boldsymbol{\mu}\in\mathcal{M}_{G\times J}\) (plug-in means).
- Sigma
Array of cell-type covariances in \(\mathcal{M}_{G\times G\times J}\).