Description Usage Arguments Details Value Author(s) See Also Examples
Compute the hessian of the negative log likelihood of a db or beta binomial distribution from an analytic expression for this quantity.
1 | aHess(object,x)
|
object |
An object of class |
x |
A numeric vector of observations appropriate for the model that
was fitted to produce |
This function is essentially the same as the finfo()
functions and differs from it only in that it is designed to
act up "mleDb"
or "mleBb"
objects, from which
(estimates of) the relevant parameters are extracted.
A two-by-two positive definite (with any luck!) numeric matrix. Its inverse is an estimate of the covariance matrix of the parameter estimates.
Rolf Turner r.turner@auckland.ac.nz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | X <- hmm.discnp::SydColDisc
X$y <- as.numeric(X$y)
X <- split(X,f=with(X,interaction(locn,depth)))
x <- X[[19]]$y
fit <- mleDb(x, ntop=5)
H <- aHess(fit)
print(solve(H)) # Equal to ...
print(vcov(fit))
X <- hrsRcePred
top1e <- X[X$sbjType=="Expert","top1"]
fit <- mleBb(top1e,size=10)
H <- aHess(fit,x=top1e)
print(solve(H)) # Equal to ...
print(vcov(fit))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.