Retrieves the estimated autoregressive parameters from a fitted
fMRI linear model that used AR error modeling.
Usage
ar_parameters(object, ...)
# S3 method for class 'fmri_lm'
ar_parameters(object, ...)
Arguments
- object
An object of class fmri_lm
- ...
Additional arguments (currently unused)
Value
A numeric vector of AR coefficients if AR modeling was used,
or NULL if no AR modeling was performed (cor_struct = "iid").
For runwise estimation without global AR, returns the average of
run-specific estimates.
Examples
if (FALSE) { # \dontrun{
# Fit model with AR(1) errors
fit <- fmri_lm(onset ~ hrf(cond), dataset = dset, cor_struct = "ar1")
ar_parameters(fit) # Extract estimated AR(1) coefficient
} # }