Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SP2Rect

Conversion of a symmetric matrix stored in a packed format (lower triangle only) into a matrix


Description

It creates a symmetric matrix from its lower triangle.

Usage

SP2Rect(LT, dim)

Arguments

LT

a numeric vector with the lower triangle (stored columnwise) of the matrix we want to reconstruct.

dim

number of rows and columns of a resulting matrix.

Value

A matrix.

Author(s)

Examples

SP2Rect(3, dim=1)
SP2Rect(c(1, 0.5, 2), dim=2)
SP2Rect(c(1, 0.5, 0.25, 2, -0.5, 3), dim=3)

mixAK

Multivariate Normal Mixture Models and Mixtures of Generalized Linear Mixed Models Including Model Based Clustering

v5.3
GPL (>= 3)
Authors
Arnošt Komárek <arnost.komarek@mff.cuni.cz>
Initial release
2020-06-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.