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, time_lim = NULL, ...)
formula |
An object of class |
data |
An |
... |
Any other arguments passed to (LM/GLM) |
time_lim |
Numeric vector of length 2 specifying time period to be used as a baseline. |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.