Learn R Programming

TCIU (version 1.2.7)

fmri_ts_forecast: forecast the fMRI data based on the time series

Description

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

Usage

fmri_ts_forecast(fmridata, voxel_location, cut = 10)

Value

a figure forecasting the fMRI voxel with time series

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.

Examples

Run this code
fmri_generate = fmri_simulate_func(dim_data = c(64, 64, 40), mask = mask)
# \donttest{
smoothmod <- GaussSmoothArray(fmri_generate$fmri_data, sigma = diag(3,3))
fmri_ts_forecast(smoothmod,c(41,44,33))
# }

Run the code above in your browser using DataLab