Learn R Programming

VCA (version 1.2.1)

vcovFixed: Calculate Variance-Covariance Matrix and Standard Errors of Fixed Effects for an 'VCA' Object.

Description

The variance-covariance matrix of fixed effects for the linear mixed model in 'obj' is calculated.

Usage

vcovFixed(obj)

Arguments

obj
... (VCA) object for which the variance-covariance matrix of fixed effects shall be calculated

Value

  • (matrix) corresponding to the variance-covariance matrix of fixed effects

Details

The variance-covariance matrix of fixed effects for a linear mixed model corresponds to matrix $(X^{T}V^{-1}X)^{-}$, where >$^{T}$< denotes the transpose operator, >$^{-1}$< the regular matrix inverse, and >$^{-}$< the generalized (Moore-Penrose) inverse of a matrix.

Examples

Run this code
data(dataEP05A2_1)
fit1 <- anovaMM(y~day/(run), dataEP05A2_1)
vcov(fit1)

fit2 <- anovaVCA(y~day/run, dataEP05A2_1)
vcov(fit2)

Run the code above in your browser using DataLab