loo-prediction function

Generic functions for LOO predictions