Conversion utilities for Stan’s R Dump format

stan_rdump(data, filename) Dump a dictionary with model data into a file using the R dump format that Stan supports.
read_rdump(filename) Read data formatted using the R dump format
pystan.misc.stan_rdump(data, filename)[source]

Dump a dictionary with model data into a file using the R dump format that Stan supports.

Parameters:

data : dict

filename : str

pystan.misc.read_rdump(filename)[source]

Read data formatted using the R dump format

Parameters:filename: str :
Returns:data : OrderedDict