View source: R/pipeline-detrend.R
detrend_pupil | R Documentation |
This function detrends pupil data by fitting a linear model
of pupil_data ~ time
, and returning the fitted betas and the residuals
(pupil_data - fitted_values
).
This function is called by the exposed wrapper detrend()
.
detrend_pupil(x, prev_op)
x |
A data frame containing pupil data with columns |
prev_op |
The name of the previous operation's pupil column |
A list containing the fitted values, coefficients, and residuals
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.