Estimate area under a declared pupil-response window
Source:R/pupil-estimands.R
estimate_pupil_auc.RdEstimate area under a declared pupil-response window
Examples
grid <- data.frame(.event_time = seq(0, 1, length.out = 5))
draws <- matrix(rnorm(500), nrow = 100)
prediction <- as_pupil_prediction_draws(draws, grid, "millimetres")
estimate_pupil_auc(prediction, c(0.2, 0.8))
#> <gp3bayes_pupil_estimand>
#> Estimand: auc
#> Rows: 1
#> Declared window: 0.2 to 0.8
#> Automatic significance decision: FALSE