simulate_fmri_noise: Simulate fMRI Noise using ARMA Model

View source: R/simulate.R

simulate_fmri_noiseR Documentation

Simulate fMRI Noise using ARMA Model

Description

This function simulates fMRI noise using an autoregressive moving average (ARMA) model.

Usage

simulate_fmri_noise(n, ar = c(0.3), ma = c(0.5), sd = 1, seed = NULL)

Arguments

n

The number of time points in the fMRI time series.

ar

A numeric vector containing autoregressive (AR) coefficients (default is c(0.3)).

ma

A numeric vector containing moving average (MA) coefficients (default is c(0.5)).

sd

The standard deviation of the white noise component (default is 1).

seed

An optional seed for reproducibility (default is NULL).

Value

A numeric vector containing the simulated fMRI noise.


bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.