emxKroneckerVariance: Creates a large Variance matrix by Kroneckering two smaller...

Description Usage Arguments Details Value See Also Examples

View source: R/emxBehaviorGenetics.R

Description

This function creates the wide format variance matrix when combined with a relatedness matrix

Usage

1

Arguments

h

MxMatrix. Left hand side of the Kronecker product. Typically the relatedness matrix.

v

MxMatrix. Right hand side of the Kronecker product. Typically the variance matrix.

name

character. Name of the resulting large matrix.

Details

In many behavior genetic models, a relationship matrix is combined with a base variance matrix. The combination is done with a Kronecker product so that the variance exists (possibly weighted by zero or another number) for each member of the relationship.

Value

MxAlgebra

See Also

emxRelatednessMatrix

Examples

1
2
3
4
5
6
7
   
# Create a loadings matrix
require(EasyMx)
x <- letters[23:26]
amat <- emxCholeskyVariance(x, 'A')
ahmat <- emxRelatednessMatrix(2, c(1, .5, 1), name='AH')
ab <- emxKroneckerVariance(ahmat, amat[[2]], 'AB')

jpritikin/emx documentation built on May 19, 2019, 11:50 p.m.