arviz.from_cmdstan

arviz.from_cmdstan(posterior=None, *, posterior_predictive=None, prior=None, prior_predictive=None, observed_data=None, observed_data_var=None, log_likelihood=None, coords=None, dims=None)[source]

Convert CmdStan data into an InferenceData object.

Parameters
posteriorList[str]

List of paths to output.csv files. CSV file can be stacked csv containing all the chains

cat output*.csv > combined_output.csv

posterior_predictivestr, List[Str]

Posterior predictive samples for the fit. If endswith “.csv” assumes file.

priorList[str]

List of paths to output.csv files CSV file can be stacked csv containing all the chains.

cat output*.csv > combined_output.csv

prior_predictivestr, List[Str]

Prior predictive samples for the fit. If endswith “.csv” assumes file.

observed_datastr

Observed data used in the sampling. Path to data file in Rdump format.

observed_data_varstr, List[str]

Variable(s) used for slicing observed_data. If not defined, all data variables are imported.

log_likelihoodstr

Pointwise log_likelihood for the data.

coordsdict[str, iterable]

A dictionary containing the values that are used as index. The key is the name of the dimension, the values are the index values.

dimsdict[str, List(str)]

A mapping from variables to a list of coordinate names for the variable.

Returns
InferenceData object