sim_ts | R Documentation |
This function simulates an fMRI time series for multiple conditions with specified parameters.
sim_ts(ncond, nreps = 12, amps = rep(1, ncond), isi = c(3, 6), TR = 1.5)
ncond |
The number of conditions to simulate. |
nreps |
The number of repetitions per condition (default is 12). |
amps |
A vector of amplitudes for each condition (default is a vector of 1s with length ncond). |
isi |
A vector specifying the range of inter-stimulus intervals to sample from (default is c(3, 6)). |
TR |
The repetition time of the fMRI acquisition (default is 1.5 seconds). |
A list with two elements:
onset: A vector of the onset times for each trial.
mat: A matrix containing the simulated fMRI time series, with time in the first column and the simulated responses for each condition in the subsequent columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.