algebraMatrices: Model matrices used in derivatives

Description Usage Arguments Value Author(s) Examples

Description

These matrices are used in the analytic gradients

Usage

1
2
3
4
5

Arguments

n

Number of rows and columns in the original matrix

diag

Logical indicating if the diagonal should be included (set to FALSE for derivative of vech(x))

Value

A sparse matrix

Author(s)

Sacha Epskamp

Examples

1
2
3
4
5
6
7
8
# Duplication matrix for 10 variables:
duplicationMatrix(10)

# Elimination matrix for 10 variables:
eliminationMatrix(10)

# Diagonailzation matrix for 10 variables:
diagonalizationMatrix(10)

psychonetrics documentation built on Oct. 26, 2021, 1:06 a.m.