fMRI: fMRI Data

Description Usage Format Source

Description

A dataset containing fMRI measurements for a single subject during 36 distinct trials, during which the subject viewed a picture and a sentence that may or may not correctly describe the picture.

Usage

1
2
3
data(fMRI) 
Y <- fMRI[["Y"]] 
map <- fMRI[["map"]]

Format

A list of two items:

Y

Three-way tensor of fMRI activations for 36 distinct trials. For each trial, a time series of 55 fMRI activations were measured at 4,498 spatial locations.

map

Matrix of (x, y, z) locations for each level of the third mode of Y

...

Source

fMRI data for subject 04847, downlaoded from http://www.cs.cmu.edu/afs/cs.cmu.edu/project/theo-81/www/, containing only time series with 55 time points corresponding to sentence/picture trials as in https://arxiv.org/pdf/1202.2476.pdf, processed as follows:

library(R.matlab)
data <- readMat("data-starplus-04847-v7.mat")
map <- data$meta[[1]]
time.55 <- which(unlist(lapply(data$data, function(x) {nrow(x[[1]])})) == 55)
conds <- numeric(length(data$data))
for (i in 1:length(conds)) conds[i] <- data$info[, , i]$cond %in% c(2, 3)
cond.23 <- which(conds == 1)
use <- cond.23[cond.23 %in% time.55]
Y <- array(dim = c(length(use), 55, 4698))
for (u in use) Y[which(u == use), , ] <- data$data[[u]][[1]]
fMRI <- list("Y" = Y, "map" = map)


maryclare/LANOVA documentation built on May 21, 2019, 12:39 p.m.