magic.
magic.post.proc(X,object,w=NULL)magic after fitting the
model with model matrix X.magic, if one was.). If w is a vector then its
elements are typically proportional to reciprocal variances (but could even be negative).
If w is a matrix then
t(w)%*%w should typically give
the inverse of the covariance matrix of the response data supplied to magic.object contains rV ($V$, say), and
scale ($s$, say) which can be
used to obtain the require quantities as follows. The Bayesian covariance matrix of
the parameters is $VV's$. The vector of
estimated degrees of freedom for each parameter is the leading diagonal of
$ VV'X'W'WX$
where $W$ is either the
weight matrix w or the matrix diag(w). The
hat/influence matrix is given by
$ WXVV'X'W'$
.The frequentist parameter estimator covariance matrix is $ VV'X'W'WXVV's$: it is sometimes useful for testing terms for equality to zero.
magic