An open API service indexing awesome lists of open source software.

https://github.com/tpapp/standump.jl

Julia library for dumping data to be read by Stan.
https://github.com/tpapp/standump.jl

Last synced: about 1 year ago
JSON representation

Julia library for dumping data to be read by Stan.

Awesome Lists containing this project

README

          

# StanDump.jl

![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)
[![Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](http://www.repostatus.org/badges/latest/wip.svg)](http://www.repostatus.org/#wip)
[![build](https://github.com/tpapp/StanDump.jl/workflows/CI/badge.svg)](https://github.com/tpapp/StanDump.jl/actions?query=workflow%3ACI)
[![codecov.io](http://codecov.io/github/tpapp/StanDump.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/StanDump.jl?branch=master)

Julia package for saving *data* (arrays and scalars) in a format that can be read by [`cmdstan`](http://mc-stan.org/interfaces/cmdstan.html).

# Example usage

```julia
N = 200
stan_dump("/tmp/test.data.R", (N = N, x = randn(N)))
```

`stan_dump(target, data)` is the main entry point. The first argument is usually a filename (see its docstring for other options), while the `data` is specified as a `NamedTuple`.

Variable names are minimally validated. Only supports types understood by `cmdstan`.