Matrix2Vector: Matrix2Vector - a function that will map a matrix to a vector...

Description Usage Arguments Examples

View source: R/Matrix2Vector.R

Description

This function is used when loading pconns in ConstructMarginalModel.

Usage

1
Matrix2Vector(pconn_data = NULL, pconn_vector = NULL, direction = "to_vector")

Arguments

pconn_data

The pconn matrix represented as a 2D matrix

pconn_vector

The pconn vector to map to the matrix. Only used when "to_matrix" is specified

direction

A string denoting the direction of the transform. Can be either "to_matrix" or "to_vector". Default is "to_vector"

Examples

1
2
data <- Matrix2Vector(pconn_data=cifti_data$data,pconn_vector=NULL,direction="to_vector")
data <- Matrix2Vector(pconn_data=cifti_data$data,pconn_vector=pvalue_vector,direction="to_matrix")

DCAN-Labs/MarginalModelCIFTI documentation built on Nov. 30, 2021, 3:40 p.m.