# \#stan

**URL:** https://discourse.julialang.org/tag/stan/255.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Stan.jl v10.8.4 Released](https://discourse.julialang.org/t/stan-jl-v10-8-4-released/136904)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.julialang.org/u/bparbhu)\
**Replies:** 3\
**Last updated:** [April 28, 2026, 11:58pm UTC](https://discourse.julialang.org/t/stan-jl-v10-8-4-released/136904 "2026-04-28T23:58:17Z")

</div>

Stan.jl v10.8.4 Released — CmdStan 2.37 Support and Ecosystem Refresh We’re happy to announce the release of Stan.jl v10.8.4. This release brings the Stan.jl ecosystem to CmdStan 2.37, giving the Julia community access …

---

## [Help -- can't get Turing to work on a simple model](https://discourse.julialang.org/t/help-cant-get-turing-to-work-on-a-simple-model/122107)

<div class="topic-metadata">

**Author:** [@anprasad](https://discourse.julialang.org/u/anprasad)\
**Replies:** 6\
**Last updated:** [March 19, 2025, 2:50pm UTC](https://discourse.julialang.org/t/help-cant-get-turing-to-work-on-a-simple-model/122107 "2025-03-19T14:50:34Z")

</div>

Hi everyone, I’m new to Bayesian inference and Turing, so I realize that this is likely user error more than anything. I’m trying to fit a simple model; I’ve tried two versions here @model function model1(samples) …

---

## [Cannot convince StanSample to change num\_samples](https://discourse.julialang.org/t/cannot-convince-stansample-to-change-num-samples/117814)

<div class="topic-metadata">

**Author:** [@dimsinel](https://discourse.julialang.org/u/dimsinel)\
**Replies:** 0\
**Last updated:** [August 4, 2024, 4:32pm UTC](https://discourse.julialang.org/t/cannot-convince-stansample-to-change-num-samples/117814 "2024-08-04T16:32:21Z")

</div>

This is a simple model: art\_model = " data { int\<lower = 0, upper = 100\> Y; } parameters { real\<lower = 0, upper = 1\> pi; } model { Y ~ binomial(100, pi); pi ~ beta(4, 6); } """ sample\_art\_mod…

---

## [Very large performance difference between Turing and Stan \[Gaussian Process\]](https://discourse.julialang.org/t/very-large-performance-difference-between-turing-and-stan-gaussian-process/93663)

<div class="topic-metadata">

**Author:** [@jdossgollin](https://discourse.julialang.org/u/jdossgollin)\
**Replies:** 9\
**Last updated:** [June 10, 2023, 5:42am UTC](https://discourse.julialang.org/t/very-large-performance-difference-between-turing-and-stan-gaussian-process/93663 "2023-06-10T05:42:59Z")

</div>

A student I’m working with is working on a Gaussian Process model in Turing, but it was very slow. Out of frustration, they reimplemented in stan and it’s much faster. For context, it fits (1000 samples from 1 chain) in …

---

## [Implementing r's stan\_glm() in Julia](https://discourse.julialang.org/t/implementing-rs-stan-glm-in-julia/78916)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 5\
**Last updated:** [April 3, 2022, 7:56pm UTC](https://discourse.julialang.org/t/implementing-rs-stan-glm-in-julia/78916 "2022-04-03T19:56:55Z")

</div>

I am working through “Regression and Other Stories” for a class. All of the examples are done in R and I have been trying to recreate them in Julia for practice. For the most part it has been no problem, however, I am h…

---

## [How to run Stan diagnose binary using StanSample.jl](https://discourse.julialang.org/t/how-to-run-stan-diagnose-binary-using-stansample-jl/78304)

<div class="topic-metadata">

**Author:** [@Stephen\_Wild](https://discourse.julialang.org/u/Stephen_Wild)\
**Replies:** 3\
**Last updated:** [March 22, 2022, 11:59pm UTC](https://discourse.julialang.org/t/how-to-run-stan-diagnose-binary-using-stansample-jl/78304 "2022-03-22T23:59:58Z")

</div>

Hello, I am trying to run Stan’s diagnose binary on a model. Unfortunately, I am getting an error. Here is some reproducible code using the example bernoulli model. using StanSample, DataFrames ProjDir = @\_\_DIR\_\_ ber…

---

## [Issues implementing a simple Stan example](https://discourse.julialang.org/t/issues-implementing-a-simple-stan-example/75985)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 33\
**Last updated:** [February 19, 2022, 9:14pm UTC](https://discourse.julialang.org/t/issues-implementing-a-simple-stan-example/75985 "2022-02-19T21:14:46Z")

</div>

Hi everyone, I am following the example posted here: https://github.com/StanJulia/StanSample.jl/blob/master/example/keyword\_bernoulli.jl When I get to the following line of code I get an error: sm = SampleModel("test…

---

## [StanSample.jl can't find cmdstan?](https://discourse.julialang.org/t/stansample-jl-cant-find-cmdstan/75451)

<div class="topic-metadata">

**Author:** [@PeetoomHeida](https://discourse.julialang.org/u/PeetoomHeida)\
**Replies:** 6\
**Last updated:** [January 30, 2022, 11:57pm UTC](https://discourse.julialang.org/t/stansample-jl-cant-find-cmdstan/75451 "2022-01-30T23:57:16Z")

</div>

I am having trouble getting a Stan model to run through Julia. I have installed cmdstan following these instructions. cmdstan is now installed in /home/isaac/.conda/envs/stan-env/bin/cmdstan. I have added export CMDSTAN=…

---

## [I cant use Stan.jl.I got Wrning:Environment variable CMDSTAN\_HOME not set. Use set\_cmdstan\_home!](https://discourse.julialang.org/t/i-cant-use-stan-jl-i-got-wrning-environment-variable-cmdstan-home-not-set-use-set-cmdstan-home/61364)

<div class="topic-metadata">

**Author:** [@ryuma](https://discourse.julialang.org/u/ryuma)\
**Replies:** 0\
**Last updated:** [May 18, 2021, 1:46pm UTC](https://discourse.julialang.org/t/i-cant-use-stan-jl-i-got-wrning-environment-variable-cmdstan-home-not-set-use-set-cmdstan-home/61364 "2021-05-18T13:46:27Z")

</div>

I use Julia1.6.0.please help me. I setted the path. ENV\[“CMDSTAN\_HOME”\] = “C:/cmdstan-2.26.1” using Stan ┌ Warning: Environment variable CMDSTAN\_HOME not set. Use set\_cmdstan\_home!. └ @ StanBase C:\\Users\\salzl\\.julia\\…

---

## [Include a C++ function in a Stan code](https://discourse.julialang.org/t/include-a-c-function-in-a-stan-code/40782)

<div class="topic-metadata">

**Author:** [@99dB](https://discourse.julialang.org/u/99dB)\
**Replies:** 2\
**Last updated:** [June 5, 2020, 4:11am UTC](https://discourse.julialang.org/t/include-a-c-function-in-a-stan-code/40782 "2020-06-05T04:11:39Z")

</div>

Dear all, I need to include a C++ function in a stan code but I don’t know how I can do it. The function is remainder and then I include the associated library but I get this error: SystemError: opening file "\<cmath\>"…

---

## [Help with .travis.yml](https://discourse.julialang.org/t/help-with-travis-yml/25017)

<div class="topic-metadata">

**Author:** [@goedman](https://discourse.julialang.org/u/goedman)\
**Replies:** 4\
**Last updated:** [June 10, 2019, 8:35pm UTC](https://discourse.julialang.org/t/help-with-travis-yml/25017 "2019-06-10T20:35:17Z")

</div>

For several years I’ve been testing Cmdstan.jl (previously Stan.jl) with a script like below. I updated building the docs mid last year and attempted to use stages, with limited success, but at least early on below scrip…
