View source: R/fmri_lm_ar_params.R
ar_parameters | R Documentation |
Retrieves the estimated autoregressive parameters from a fitted fMRI linear model that used AR error modeling.
ar_parameters(object, ...)
## S3 method for class 'fmri_lm'
ar_parameters(object, ...)
object |
An object of class |
... |
Additional arguments (currently unused) |
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.
## Not run:
# 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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.