cor_mat {fMRItools}R Documentation

Un-vectorize correlation matrix

Description

Converted a vectorized lower triangular correlation matrix back to its full matrix form.

Usage

cor_mat(
  x_diag,
  diag_val = NA,
  names = NULL,
  newOrder = NULL,
  lowerOnly = FALSE
)

Arguments

x_diag

The vectorized lower triangular correlation matrix.

diag_val

The value to put on the diagonals of the correlation matrix. Default: NA.

names

(Optional) row/column names.

newOrder

(Optional) new index order.

lowerOnly

Set the upper triangle to NA? Default: FALSE.

Value

A square correlation matrix


[Package fMRItools version 0.4.7 Index]