View source: R/001_data_simulation.R
TRR_simulated_data | R Documentation |
Simulated tensor response regression data
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
)
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) |
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.
input <- TRR_simulated_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.