Skip to content

Combined standard errors for subsets of coefficients? #157

Answered by BertvanderVeen
gerverska asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks Kyle.

Yes, you can determine standard errors for combinations of parameter estimates as described above, but it requires taking the covariance of those estimators into consideration. This will require two things: a matrix (let's call it) $\textbf{C}$ that forms the appropriate linear combinations, and the asymptotic covariance matrix of the model, retrieved via vcov(model).

Then, it should be something similar as in the following example:

library(gllvm)
data(spider)

# Make example covariate with 4 categories
X = data.frame(covariate = rep(c("one","two","three","four"),7))

# Fit example model
model <- gllvm(spider$abund,X,family="poisson",num.lv=0)

# Estimated coefficients
bs <- …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gerverska
Comment options

@BertvanderVeen
Comment options

@gerverska
Comment options

@BertvanderVeen
Comment options

Answer selected by gerverska
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants