estimate_betas.matrix_dataset | R Documentation |
This function estimates betas (regression coefficients) for fixed and random effects in a matrix dataset using various methods.
## S3 method for class 'matrix_dataset'
estimate_betas(
x,
fixed = NULL,
ran,
block,
method = c("r1_glms", "r1", "lss", "lss_naive", "mixed", "pls", "pls_global", "ols"),
basemod = NULL,
hrf_basis = NULL,
hrf_ref = NULL,
ncomp = 4,
lambda = 0.01,
...
)
x |
An object of class |
fixed |
A formula specifying the fixed regressors that model constant effects (i.e., non-varying over trials) |
ran |
A formula specifying the random (trialwise) regressors that model single trial effects |
block |
A formula specifying the block factor |
method |
The regression method for estimating trialwise betas; one of "mixed", "pls", "pls_global", or "ols" (default: "mixed") |
basemod |
A |
ncomp |
Number of PLS components for the "pls" and "pls_global" methods (default: 4) |
lambda |
Lambda parameter (not currently used; default: 0.01) |
... |
Additional arguments passed to the estimation method |
A list of class "fmri_betas" containing the following components:
betas_fixed: Matrix representing the fixed effect betas
betas_ran: Matrix representing the random effect betas
design_ran: Design matrix for random effects
design_fixed: Design matrix for fixed effects
design_base: Design matrix for baseline model
matrix_dataset
, baseline_model
Other estimate_betas:
estimate_betas()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.