Obtain the Contracted Linear Adjusted Covariance Matrix
Source:R/kenwardroger.R
h_var_adj_contracted.RdObtains the linear Kenward-Roger adjusted covariance matrix for the
coefficient estimates from the P matrices and the contracted S_Q.
Used in mmrm() fitting if vcov is "Kenward-Roger-Linear".
Arguments
- v
(
matrix)
unadjusted covariance matrix.- w
(
matrix)
covariance matrix of the estimated covariance parameters.- p
(
matrix)
P matrix fromh_get_kr_comp().- s_q
(
matrix)
contracted Q sumS_Qfromh_get_kr_comp()called withw.
Details
See the section "Contracted linear covariance adjustment" in
vignette("kenward", package = "mmrm"). The full w is used, so that
cross-group covariance parameter covariances contribute.