vcconv {lme4}R Documentation

Convert between representations of (co-)variance structures

Description

Convert between representations of (co-)variance structures (EXPERIMENTAL). See source code for details.

Usage

  mlist2vec(L)
  vec2mlist(v, n = NULL, symm = TRUE)
  vec2STlist(v, n = NULL)
  sdcor2cov(m)
  cov2sdcor(V)
  Vv_to_Cv(v, n = NULL, s = 1)
  Sv_to_Cv(v, n = NULL, s = 1)
  Cv_to_Vv(v, n = NULL, s = 1)
  Cv_to_Sv(v, n = NULL, s = 1)

Arguments

L

List of symmetric, upper-triangular, or lower-triangular square matrices.

v

Concatenated vector containing the elements of the lower-triangle (including the diagonal) of a symmetric or triangular matrix.

n

Number of rows (and columns) of the resulting matrix.

symm

Return symmetric matrix if TRUE or lower-triangular if FALSE.

m

Standard deviation-correlation matrix.

V

Covariance matrix.

s

Scale parameter.

Details

Value

(Co-)variance structure

Examples

vec2mlist(1:6)
mlist2vec(vec2mlist(1:6)) # approximate inverse

[Package lme4 version 1.1-34 Index]