View source: R/analyse_response_time.R
| analyse_response_time | R Documentation |
Internal channel-level dispatch for
analyse_kinetics(method = "response_time"). Computes the fractional
response time for each nirs_channel within a single "mnirs" data
frame. See analyse_kinetics() for user-facing documentation.
analyse_response_time(
data,
nirs_channels = NULL,
time_channel = NULL,
start_time = NULL,
response_fraction = 0.5,
direction = c("auto", "positive", "negative"),
end_window = Inf,
verbose = TRUE,
...,
env = rlang::caller_env()
)
data |
A data frame of class "mnirs" containing time series data and metadata. |
nirs_channels |
A character vector giving the names of mNIRS columns to
operate on. Must match column names in
|
time_channel |
A character string naming the time or sample column.
Must match a column name in
|
start_time |
A numeric value in units of |
response_fraction |
response_time: A numeric vector in the range
|
direction |
A character string specifying the response direction
|
end_window |
A numeric value in units of For "biexponential", |
verbose |
Logical. |
... |
Additional arguments passed to the underlying method function.
See Details. For the |
env |
The calling environment or a defused call, used to report errors and warnings as coming from the user-facing function rather than the validator. |
A data.frame with one row per nirs_channel per
response_fraction and columns nirs_channels, response_fraction,
A, B, response_time, response_value, fitted, idx. Per-channel
metadata are attached as attributes:
"model": NULL (no parametric model is fitted).
"fitted_data": a named list of per-channel data frames with
columns window_idx and fitted, containing the baseline,
response, and extreme key points.
"diagnostics": a data.frame with one row per nirs_channel
containing model fit diagnostics.
"channel_args": a data.frame with one row per nirs_channel
recording the resolved arguments used.
analyse_kinetics(), response_time()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.