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.
- Host: GitHub
- URL: https://github.com/tpapp/standump.jl
- Owner: tpapp
- License: mit
- Created: 2017-05-04T08:11:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T11:05:58.000Z (about 1 year ago)
- Last Synced: 2025-06-21T11:07:51.238Z (about 1 year ago)
- Language: Julia
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StanDump.jl

[](http://www.repostatus.org/#wip)
[](https://github.com/tpapp/StanDump.jl/actions?query=workflow%3ACI)
[](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`.