hessian | R Documentation |
Compute Hessian matrix at the MLE
hessian(mod, numerical = FALSE)
mod |
an object of class |
numerical |
Boolean. Defaults to |
Hessian matrix at the MLE. In this setting, it's hard to compute expectations to calculate the information matrix,
so we return the consistent estimate using sample moments:
\hat{A}(\hat{\theta}) = \sum_i \frac{\partial^2}{\partial \theta \partial \theta^T} l(\theta, W_i)
evaluated at \theta = \hat{\theta}
.
data(soil_phylum_small_otu1)
mod <- bbdml(formula = cbind(W, M - W) ~ DayAmdmt,
phi.formula = ~ DayAmdmt,
data = soil_phylum_small_otu1)
hessian(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.