TRR_simulated_data: Simulated tensor response regression data

View source: R/001_data_simulation.R

TRR_simulated_dataR Documentation

Simulated tensor response regression data

Description

Simulated tensor response regression data

Usage

TRR_simulated_data(
  subjects = 1,
  max_time = 200,
  margin_sizes = c(20, 20),
  CNR = 1,
  k = 0.3,
  num_active_regions = 1,
  obs.var = 1
)

Arguments

subjects

The number of subjects in the data (a scalar)

max_time

The length of the tensor time series (a scalar)

margin_sizes

The sizes of the tensor coefficient (a vector)

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.

k

The AR(1) autoregression coefficient (a scalar)

num_active_regions

The number of nonzero regions in the tensor coefficient

obs.var

The observation variance (a scalar)

Value

A list with objects Y (the tensor-valued response), x (the matrix-valued covariate), true_betas (the array of true tensor coefficient values), and true_k the true value for the autocorrelation coefficient.

Examples

input <- TRR_simulated_data()

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