{"id":16499327,"url":"https://github.com/tpapp/stanrun.jl","last_synced_at":"2026-03-06T18:09:28.806Z","repository":{"id":37419176,"uuid":"168160474","full_name":"tpapp/StanRun.jl","owner":"tpapp","description":"Run Stan samples from Julia.","archived":false,"fork":false,"pushed_at":"2025-05-05T11:35:15.000Z","size":52,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T07:05:19.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-29T13:36:57.000Z","updated_at":"2025-05-05T14:10:53.000Z","dependencies_parsed_at":"2025-07-03T07:05:26.042Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/StanRun.jl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tpapp/StanRun.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanRun.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanRun.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanRun.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanRun.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/StanRun.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FStanRun.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263279262,"owners_count":23441680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T14:52:10.474Z","updated_at":"2026-03-06T18:09:28.556Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StanRun.jl\n\n![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n[![build](https://github.com/tpapp/StanRun.jl/workflows/CI/badge.svg)](https://github.com/tpapp/StanRun.jl/actions?query=workflow%3ACI)\n[![codecov.io](http://codecov.io/github/tpapp/StanRun.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/StanRun.jl?branch=master)\n\nA collection of routines for running [CmdStan](https://mc-stan.org/users/interfaces/cmdstan.html).\n\n## Installation\n\nThis package is registered. Install with\n\n```julia\npkg\u003e add StanRun\n```\n\nYou need a working [CmdStan](https://mc-stan.org/users/interfaces/cmdstan.html) installation, the path of which you should specify in `JULIA_CMDSTAN_HOME`, eg in your `~/.julia/config/startup.jl` have a line like\n```julia\n# CmdStan setup\nENV[\"JULIA_CMDSTAN_HOME\"] = expanduser(\"~/src/cmdstan-2.36.0/\") # replace with your path\n```\n\n## Usage\n\nIt is recommended that you start your Julia process with multiple worker processes to take advantage of parallel sampling, eg\n\n```sh\njulia -p auto\n```\n\nOtherwise, `stan_sample` will use a single process.\n\nUse this package like this:\n\n```julia\nusing StanRun\nmodel = StanModel(\"/path/to/model.stan\") # directory should be writable, for compilation\ndata = (N = 100, x = randn(N, 1000))     # in a format supported by stan_dump\nchains = stan_sample(model, data, 5)     # 5 chain paths and log files\n```\n\nSee the docstrings (in particular `?StanRun`) for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fstanrun.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Fstanrun.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fstanrun.jl/lists"}