stan-dev/loo

export srs_diff_est

Open

#333 opened on Mar 1, 2026

 (10 comments) (0 reactions) (0 assignees)R (39 forks)github user discovery
good first issue

Repository metrics

Stars
 (157 stars)
PR merge metrics
 (Avg merge 2d 9h) (4 merged PRs in 30d)

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