se.gllvm | R Documentation |
Calculates Hessian and standard errors for gllvm model.
## S3 method for class 'gllvm'
se(object, ...)
object |
an object of class 'gllvm'. |
... |
not used. |
Computes Hessian and standard errors for gllvm model.
sd |
list of standard errors of parameters |
Hess |
list including Hessian matrix and approximative covariance matrix of parameters |
Jenni Niku <jenni.m.e.niku@jyu.fi>
Dunn, P. K., and Smyth, G. K. (1996). Randomized quantile residuals. Journal of Computational and Graphical Statistics, 5, 236-244.
Hui, F. K. C., Taskinen, S., Pledger, S., Foster, S. D., and Warton, D. I. (2015). Model-based approaches to unconstrained ordination. Methods in Ecology and Evolution, 6:399-411.
data(spider)
mod <- gllvm(spider$abund, num.lv = 2, family = "poisson", sd.errors = FALSE)
# Calculate standard errors after fitting
sdErr <- se(mod)
# Store the standard errors in the right place
mod$sd <-sdErr$sd
# Store the Hessian in the right place
mod$Hess <- sdErr$Hess
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.