spaPreMatGen: Creates Sparse Precision Matrices

Description Usage Arguments Value Author(s)

View source: R/spaPreMatGen.R

Description

This Funtion Creates Sparse Precision Matrices with a shape specified by the user.

Usage

1
spaPreMatGen(p = c(10, 10, 10), type = "R", sparsity = NULL)

Arguments

p

A vector specifying the dimension size of each precision graph, it defaults to a 3 dimesional Tensor with each dimension os size 10.

type

A charachter strin specifying the matrix structure:

"R"

For a Random Matrix, as described in Wang & Li.

"C"

For a "Cyclic Graph" Matrix.

It defaults to a random matrix "R".

sparsity

A vector with the requiered sparsity for the Random Matrix. If NULL it defaults to a 10% sparsity level for each precision matrix.

Value

A list of lists containing the Presion Matrices, the Covariance Matrices and the Adjacency Matrices.Each list is as follows:

P

A list of Precision Matrices.

S

A list of Covariance Matrices.

E

A list of Adjacency Matrices.

Author(s)

Rene Gutierrez Marquez


Rene-Gutierrez/BayTenGraMod documentation built on Dec. 12, 2020, 11:24 a.m.