fitted_hrf.fmri_lm: Compute Fitted Hemodynamic Response Functions for an fmri_lm...

View source: R/fmrilm.R

fitted_hrf.fmri_lmR Documentation

Compute Fitted Hemodynamic Response Functions for an fmri_lm Object

Description

This method computes the fitted hemodynamic response functions (HRFs) for an fmri_lm object.

Usage

## S3 method for class 'fmri_lm'
fitted_hrf(x, sample_at = seq(0, 24, by = 1), ...)

Arguments

x

An fmri_lm object for which the fitted HRFs should be computed.

sample_at

A numeric vector of time points at which the HRFs should be sampled. Default is seq(0, 24, by = 1).

...

Additional arguments (currently unused).

Value

A list where each element corresponds to an event term in the fmri_lm object. Each element contains:

pred

A matrix of predicted HRF values.

design

A tibble containing the design matrix for the HRFs.


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.