TRR_GGM_simulated_data: Simulated data for tensor response regression with Gaussian...

View source: R/001_data_simulation.R

TRR_GGM_simulated_dataR Documentation

Simulated data for tensor response regression with Gaussian graphical model

Description

Simulated data for tensor response regression with Gaussian graphical model

Usage

TRR_GGM_simulated_data(
  subjects = 20,
  regions = 10,
  max_time = 200,
  margin_sizes = c(10, 10, 10),
  SNR = 1,
  CNR = 0.05,
  conn_regions = 2,
  conn_level = 0.9
)

Arguments

subjects

The number of subjects in the data (a scalar)

regions

The number of response tensors per subject in the simulated data

max_time

The length of the tensor time series (a scalar)

margin_sizes

The sizes of the tensor coefficients (a vector)

SNR

The signal-to-noise ratio (a scalar), as defined in Welvaert, M., & Rosseel, Y. (2013). On the definition of signal-to-noise ratio and contrast-to-noise ratio for fMRI data. PloS one, 8(11), e77089.

CNR

The contrast-to-noise ratio (a scalar), as defined in Welvaert, M., & Rosseel, Y. (2013). On the definition of signal-to-noise ratio and contrast-to-noise ratio for fMRI data. PloS one, 8(11), e77089.

conn_regions

The number of response tensors that should have nonzero partial correlations

conn_level

The partial correlation for the connected regions

Value

A list with class TRR_GGM_data with elements Y, x, true_d, true_B, and true_d_covar

Examples

## Not run: 
input <- TRR_GGM_simulated_data()

## End(Not run)

danieladamspencer/bayestensorreg documentation built on July 23, 2024, 10:14 a.m.