fit_glm | R Documentation |
Fits a linear model to each timepoint separately for each electrode.
fit_glm(formula, data, ...)
## S3 method for class 'eeg_epochs'
fit_glm(formula, data, baseline = NULL, ...)
formula |
An object of class |
data |
An |
... |
Any other arguments passed to (LM/GLM) |
baseline |
Numeric vector of length 2 specifying time period to be used as a baseline. |
fit_glm(eeg_epochs)
: GLM fitting for eeg_epochs
The fit_glm
function will fit a linear model to each timepoint for
each electrode in the input dataset.
The formula is a standard R formula. Specify only the right-hand side of the formula i.e. any predictors.
The function allows flexible fitting of a baseline covariate, recognising
the term baseline
in the specified formula.
Matt Craddock, matt@mattcraddock.com
fit_glm(~epoch_labels, demo_spatial)
fit_glm(~epoch_labels + baseline, demo_spatial, baseline = c(-.1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.