fmri_rlm | R Documentation |
robust linear modeling of fmri data
fmri_rlm(
formula,
block,
baseline_model = NULL,
dataset,
durations,
drop_empty = TRUE,
nchunks = 10,
strategy = c("runwise", "slicewise", "all")
)
formula |
The model formula for experimental events. |
block |
The model formula for block structure. |
baseline_model |
(Optional) The |
dataset |
An object derived from |
durations |
A vector of event durations. |
drop_empty |
Whether to remove factor levels with a size of zero. Default is TRUE. |
nchunks |
Number of data chunks when strategy is |
strategy |
The data splitting strategy, either "runwise" or "chunkwise". Default is "runwise". |
etab <- data.frame(onset=c(1,30,15,25), fac=factor(c("A", "B", "A", "B")), run=c(1,1,2,2))
etab2 <- data.frame(onset=c(1,30,65,75), fac=factor(c("A", "B", "A", "B")), run=c(1,1,1,1))
mat <- matrix(rnorm(100*100), 100,100)
dset <- matrix_dataset(mat, TR=1, run_length=c(50,50),event_table=etab)
dset2 <- matrix_dataset(mat, TR=1, run_length=c(100),event_table=etab2)
#lm.1 <- fmri_rlm(onset ~ hrf(fac), block= ~ run,dataset=dset)
#lm.2 <- fmri_rlm(onset ~ hrf(fac), block= ~ run,dataset=dset2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.