(wrapper_guide)= # Sampling wrappers Sampling wrappers allow ArviZ to call {abbr}`PPL (Probabilistic programming library)`s in order to perform a limited subset of their capabilities and calculate stats and diagnostics that require refitting the model on different data. Their implementation is still experimental and may vary in the future. In fact, there are currently two possible approaches when creating sampling wrappers. The first one delegates all calculations to the PPL whereas the second one externalizes the computation of the pointwise log likelihood to the user who is expected to write it with xarray/NumPy. ```{toctree} wrappers/cmdstanpy_refitting pystan_refitting pymc_refitting numpyro_refitting numpyro_refitting_xr_lik ```