tests/testthat/_snaps/model_weighting.md

loo_model_weights (stacking and pseudo-BMA) gives expected result

WAoAAAACAAQFAgACAwAAAAAOAAAAAz/KEXnf1DM9P+l7oXTYyi4+YzIpAwAAAA==
Code
  print(w1)
Output
  Method: stacking
  ------
         weight
  model1 0.204 
  model2 0.796 
  model3 0.000
WAoAAAACAAQFAgACAwAAAAAOAAAAAz+xA6UGtqDDP+3eFS5zKzY/J2MLYAsc4A==
Code
  print(w2)
Output
  Method: pseudo-BMA+ with Bayesian bootstrap
  ------
         weight
  model1 0.066 
  model2 0.933 
  model3 0.000
Code
  print(w3)
Output
  Method: pseudo-BMA
  ------
         weight
  model1 0.000 
  model2 1.000 
  model3 0.000


Try the loo package in your browser

Any scripts or data that you put into this service are public.

loo documentation built on July 24, 2026, 9:08 a.m.