Estimate posterior duration above a prespecified dynamic threshold
Source:R/pupil-functional-estimands.R
estimate_pupil_threshold_duration.RdDuration is computed draw-by-draw from the dynamic contrast on its existing time grid. The threshold and direction must be supplied before interpretation; the function performs no threshold or window optimization.
Usage
estimate_pupil_threshold_duration(
contrast,
direction = c("above", "below", "absolute"),
threshold = contrast$threshold,
probability = 0.95
)