tab2mat {brmsmargins}R Documentation

Convert a Row of a Table to a Square Matrix

Description

Utility function to convert a row matrix to a square matrix. Used as the brms package returns things like the Cholesky decomposition matrix as separate columns where rows are posterior draws. Not intended to be called directly by most users.

Usage

tab2mat(X)

tab2matR(X)

Arguments

X

a matrix

Value

A numeric matrix with one row.

Functions

Examples

tab2mat(matrix(1:4, 1))
tab2mat(matrix(1:9, 1))

[Package brmsmargins version 0.2.0 Index]