fmri_ts_forecast: forecast the fMRI data based on the time series

Description Usage Arguments Details Value Author(s) Examples

View source: R/fmri_ts_forecast.R

Description

a function to forecast the fMRI data based on the time series

Usage

1
fmri_ts_forecast(fmridata, voxel_location, cut = 10)

Arguments

fmridata

a 4D array contains information for the fMRI spacetime image. The data should only contain the magnitude for the fMRI image.

voxel_location

a 3d array indicating the voxel location of the brain

cut

breaking point of the time-series data. The default is 10.

Details

The function fmri_ts_forecast is used to forecast with time series. It will fit the best ARIMA model to univariate time series from the input fMRI data.

Value

a figure forecasting the fMRI voxel with time series

Author(s)

SOCR team <http://socr.umich.edu/people/>

Examples

1
2
3
4
5
require('AnalyzeFMRI')
fmri_generate = fmri_simulate_func(dim_data = c(64, 64, 40), mask = mask)

smoothmod <- AnalyzeFMRI::GaussSmoothArray(fmri_generate$fmri_data, sigma = diag(3,3))
fmri_ts_forecast(smoothmod,c(41,44,33))

TCIU documentation built on April 30, 2021, 5:08 p.m.