This is helpful thanks. This dataset is just a small tutorial set where everything runs quickly so in practice we often have maybe 1 dataset with IPD and then 30-40 aggregate studies (in larger networks). I see from this post the re-aggregating the IPD studies is an option but may come with consequences re: high Pareto-k’s. Since I think it would be a heavy lift to hack together exact loo (for me), do you think the issue of mixing loo for IPD and loso for aggregate studies is likely to lead to decision differences in practice or is it more of an academic/interesting problem?
Have pasted these below.
print(loo_combined) # ll matrix is 4000 x 3858 consistent with one obs per IPD patient + one per agd arm
#>
#> Computed from 4000 by 3858 log-likelihood matrix.
#>
#> Estimate SE
#> elpd_loo -1604.8 37.4
#> p_loo 7.7 1.2
#> looic 3209.6 74.8
#> ------
#> MCSE of elpd_loo is NA.
#> MCSE and ESS estimates assume MCMC draws (r_eff in [0.4, 1.5]).
#>
#> Pareto k diagnostic values:
#> Count Pct. Min. ESS
#> (-Inf, 0.7] (good) 3856 99.9% 282
#> (0.7, 1] (bad) 2 0.1% <NA>
#> (1, Inf) (very bad) 0 0.0% <NA>
#> See help('pareto-k-diagnostic') for details.
print(loo_agd_only) # ll matrix is 4000 x 4 consistent with one obs per study arm
#>
#> Computed from 4000 by 4 log-likelihood matrix.
#>
#> Estimate SE
#> elpd_loo -16.4 0.8
#> p_loo 3.6 0.1
#> looic 32.7 1.6
#> ------
#> MCSE of elpd_loo is NA.
#> MCSE and ESS estimates assume MCMC draws (r_eff in [0.5, 0.6]).
#>
#> Pareto k diagnostic values:
#> Count Pct. Min. ESS
#> (-Inf, 0.7] (good) 0 0.0% <NA>
#> (0.7, 1] (bad) 3 75.0% <NA>
#> (1, Inf) (very bad) 1 25.0% <NA>
#> See help('pareto-k-diagnostic') for details.
print(loo_agd_as_ipd) # ll matrix is 4000 x 1297
#>
#> Computed from 4000 by 1297 log-likelihood matrix.
#>
#> Estimate SE
#> elpd_loo -670.5 17.6
#> p_loo 3.9 0.2
#> looic 1341.0 35.2
#> ------
#> MCSE of elpd_loo is 0.0.
#> MCSE and ESS estimates assume MCMC draws (r_eff in [0.8, 1.2]).
#>
#> All Pareto k estimates are good (k < 0.7).
#> See help('pareto-k-diagnostic') for details.