stan-dev/loo

export srs_diff_est

Open

#333 opened on Mar 1, 2026

View on GitHub
 (10 comments) (0 reactions) (0 assignees)R (38 forks)github user discovery
good first issue

Repository metrics

Stars
 (153 stars)
PR merge metrics
 (PR metrics pending)

Description

loo_subsample() can sometimes be over-complex. srs_diff_est() is a non-exported internal function used by loo_subsample. srs_diff_est() implements difference estimator Equations 7-9 of Magnusson et al., 2020. It would be useful to export this function and provide user targeted function with documentation.

Contributor guide