chunkwise_lm.latent_dataset: Internal function for performing chunkwise linear regression...

View source: R/fmri_latent_lm.R

chunkwise_lm.latent_datasetR Documentation

Internal function for performing chunkwise linear regression on latent datasets

Description

Internal function for performing chunkwise linear regression on latent datasets

Usage

## S3 method for class 'latent_dataset'
chunkwise_lm(
  dset,
  model,
  conlist,
  nchunks,
  robust = FALSE,
  verbose = FALSE,
  autocor = c("auto", "ar1", "ar2", "arma", "none"),
  bootstrap = FALSE,
  nboot = 1000,
  boot_rows = FALSE
)

Arguments

dset

A latent dataset object.

model

The fmri model object.

conlist

A list of contrasts.

nchunks

The number of chunks to use for the regression.

robust

Logical, if TRUE, robust regression will be performed.

verbose

Logical, if TRUE, additional output will be printed.

autocor

A character string specifying the autocorrelation method to use.

bootstrap

Logical, if TRUE, bootstrapping will be performed.

nboot

The number of bootstrap iterations.

boot_rows

Logical, if TRUE, bootstrap row-wise.

Details

This function is an internal helper function for fmri_latent_lm, which performs chunkwise linear regression on latent datasets. The function handles different autocorrelation options, as well as robust regression and bootstrapping.

Value

A list containing the results of the chunkwise linear regression.

See Also

fmri_latent_lm


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