class_docstr: Stan sampling wrapper base class.
  
  See the documentation on  :class:`~arviz.SamplingWrapper` for a more detailed
  description. An example of ``PyStanSamplingWrapper`` usage can be found
  in the :ref:`pystan_refitting` notebook. For usage examples of other wrappers
  see the user guide pages on :ref:`wrapper_guide`.
  
  Warnings
  --------
  Sampling wrappers are an experimental feature in a very early stage. Please use them
  with caution.
  
  See Also
  --------
  SamplingWrapper
class_docstr_tok: ["Stan","sampling","wrapper","base","class",".","See","the","documentation","on",":","class",":","`","~arviz.SamplingWrapper","`","for","a","more","detailed","description",".","An","example","of","``","PyStanSamplingWrapper","``","usage","can","be","found","in","the",":","ref",":","`","pystan_refitting","`","notebook",".","For","usage","examples","of","other","wrappers","see","the","user","guide","pages","on",":","ref",":","`","wrapper_guide","`",".","Warnings","--","--","--","--","Sampling","wrappers","are","an","experimental","feature","in","a","very","early","stage",".","Please","use","them","with","caution",".","See","Also","--","--","--","--","SamplingWrapper"]
docstr: Retrieve the log likelihood of the excluded observations from ``idata__i``.
docstr_tok: ["Retrieve","the","log","likelihood","of","the","excluded","observations","from","``","idata__i","``","."]
code: def log_likelihood__i(self, excluded_obs, idata__i):
      """Retrieve the log likelihood of the excluded observations from ``idata__i``."""
      return idata__i.log_likelihood[excluded_obs]
  
file_path: arviz/arviz/wrappers/wrap_stan.py
imports: from typing import Union
  from ..data import from_cmdstanpy, from_pystan
  from .base import SamplingWrapper
label_desc: Use image node_id 3 for calling the StanSamplingWrapper obj's underlying member method code with example usage: obj.log_likelihood__i(excluded_obs, idata__i) and returns: idata__i