View source: R/pipeline-detrend.R
detrend | R Documentation |
Linearly detrend_pupil data by fitting a linear model of pupil_data ~ time
,
and return the fitted betas and the residuals (pupil_data - fitted_values
).
detrend(eyeris)
eyeris |
An object of class |
An eyeris
object with two new columns in timeseries
:
detrend_fitted_betas
, and pupil_raw_{...}_detrend
.
system.file("extdata", "memory.asc", package = "eyeris") |>
eyeris::load_asc() |>
eyeris::deblink(extend = 50) |>
eyeris::detransient() |>
eyeris::interpolate() |>
eyeris::lpfilt(plot_freqz = TRUE) |>
eyeris::detrend() |>
plot(seed = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.