# \#bugs

**URL:** https://discourse.mc-stan.org/tag/bugs/1.md

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

---

## [Trouble transitioning from BUGS to Stan with a particular categorical distribution](https://discourse.mc-stan.org/t/trouble-transitioning-from-bugs-to-stan-with-a-particular-categorical-distribution/33776)

<div class="topic-metadata">

**Author:** [@ellaninomiya](https://discourse.mc-stan.org/u/ellaninomiya)\
**Replies:** 7\
**Last updated:** [January 13, 2024, 9:16am UTC](https://discourse.mc-stan.org/t/trouble-transitioning-from-bugs-to-stan-with-a-particular-categorical-distribution/33776 "2024-01-13T09:16:54Z")

</div>

Hi, I am new to Stan but a little familiar with jags and bugs, and I want to transition some codes from bugs to Stan. Recently I encountered a problem where I cannot figure how to deal with a special categorical distrib…

---

## [Cc1plus.exe: out of memory allocating 65536 bytes](https://discourse.mc-stan.org/t/cc1plus-exe-out-of-memory-allocating-65536-bytes/13838)

<div class="topic-metadata">

**Author:** [@serban-nicusor](https://discourse.mc-stan.org/u/serban-nicusor)\
**Replies:** 9\
**Last updated:** [September 26, 2023, 5:06am UTC](https://discourse.mc-stan.org/t/cc1plus-exe-out-of-memory-allocating-65536-bytes/13838 "2023-09-26T05:06:10Z")

</div>

Hello, I’m currently running into cc1plus.exe: out of memory allocating 65536 bytes error on AWS EC2 Windows instances. They have 32 cores, 128 GB of RAM, 25 GB of SWAP and the software on them is mirroring the current…

---

## [Little question about the error of int ( In a large longitudinal model)](https://discourse.mc-stan.org/t/little-question-about-the-error-of-int-in-a-large-longitudinal-model/31481)

<div class="topic-metadata">

**Author:** [@Steve](https://discourse.mc-stan.org/u/Steve)\
**Replies:** 2\
**Last updated:** [May 23, 2023, 3:40pm UTC](https://discourse.mc-stan.org/t/little-question-about-the-error-of-int-in-a-large-longitudinal-model/31481 "2023-05-23T15:40:59Z")

</div>

this is my stan code: data { int\<lower=1\> I; // Total number of observations int\<lower=1\> Q; // Total numbers of covariates int\<lower=1\> J; // Numbers of repeated measurements in time dimension int\<lower=1\> S; /…

---

## [Issues with OpenBUGS and switch bugs codes to Stan](https://discourse.mc-stan.org/t/issues-with-openbugs-and-switch-bugs-codes-to-stan/21307)

<div class="topic-metadata">

**Author:** [@Isa\_Nazar](https://discourse.mc-stan.org/u/Isa_Nazar)\
**Replies:** 1\
**Last updated:** [March 16, 2021, 12:18pm UTC](https://discourse.mc-stan.org/t/issues-with-openbugs-and-switch-bugs-codes-to-stan/21307 "2021-03-16T12:18:45Z")

</div>

Hello! I am new to Stan and I am trying to switch the bug’s code of my spatial survival model to Stan. In OpenBUGS, my model is syntactically correct, data loaded, model compiled, initial values generated and model init…

---

## [Tensor smooth t2() y-axis is mirror-inverted](https://discourse.mc-stan.org/t/tensor-smooth-t2-y-axis-is-mirror-inverted/15658)

<div class="topic-metadata">

**Author:** [@frithureiks](https://discourse.mc-stan.org/u/frithureiks)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 1:31pm UTC](https://discourse.mc-stan.org/t/tensor-smooth-t2-y-axis-is-mirror-inverted/15658 "2020-06-08T13:31:08Z")

</div>

Dear all, I would like to report a potential bug that appeared when I ran a model using the tensor smooth t2() on different systems: I use the model model \<- brm(Response ~ 1 + t2(A, B), data = mydata, family = studen…

---

## [Function hypergeometric\_lpmf() considers the case n=N as invalid](https://discourse.mc-stan.org/t/function-hypergeometric-lpmf-considers-the-case-n-n-as-invalid/6056)

<div class="topic-metadata">

**Author:** [@famuvie](https://discourse.mc-stan.org/u/famuvie)\
**Replies:** 5\
**Last updated:** [November 30, 2019, 10:12am UTC](https://discourse.mc-stan.org/t/function-hypergeometric-lpmf-considers-the-case-n-n-as-invalid/6056 "2019-11-30T10:12:27Z")

</div>

Hi, I’ve been having trouble with a hypergeometric model, and I narrowed the problem down to this: The function hypergeometric\_lpmf(int n | int N, int a, int b) stops when n=N claiming that it should be n\<N strictly. Ho…

---

## [Generated c++ code for recursive lpdf, lpmf functions can't compile - c++ template guru help needed](https://discourse.mc-stan.org/t/generated-c-code-for-recursive-lpdf-lpmf-functions-cant-compile-c-template-guru-help-needed/7995)

<div class="topic-metadata">

**Author:** [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Replies:** 1\
**Last updated:** [March 12, 2019, 6:43pm UTC](https://discourse.mc-stan.org/t/generated-c-code-for-recursive-lpdf-lpmf-functions-cant-compile-c-template-guru-help-needed/7995 "2019-03-12T18:43:12Z")

</div>

I’ve been investigating https://github.com/stan-dev/stan/issues/2687, which arises when you define a recursive lpmf function the c++ compiler complains. in branch https://github.com/stan-dev/stan/tree/bugfix/2687-compil…

---

## [Is this an ok solution to make this test pass?](https://discourse.mc-stan.org/t/is-this-an-ok-solution-to-make-this-test-pass/3354)

<div class="topic-metadata">

**Author:** [@sakrejda](https://discourse.mc-stan.org/u/sakrejda)\
**Replies:** 37\
**Last updated:** [March 1, 2018, 9:54pm UTC](https://discourse.mc-stan.org/t/is-this-an-ok-solution-to-make-this-test-pass/3354 "2018-03-01T21:54:24Z")

</div>

I have a long-suffering PR that seems to be failing just because our testing framework has problems with NaN. Here’s a quick fix to the issue that will still fail the test if the expected gradient is NaN but the gradien…

---

## [Stan broken on Solaris. Need fix today](https://discourse.mc-stan.org/t/stan-broken-on-solaris-need-fix-today/2826)

<div class="topic-metadata">

**Author:** [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Replies:** 3\
**Last updated:** [December 31, 2017, 6:35pm UTC](https://discourse.mc-stan.org/t/stan-broken-on-solaris-need-fix-today/2826 "2017-12-31T18:35:24Z")

</div>

Stan models don’t compile on Solaris due to stan/math/rev/mat/functor/algebra\_system.hpp:97:24: error: expected nested-name-specifier before numeric constant template \<typename FS, typename F, typename T0, typename T1\>…

---

## [Includes](https://discourse.mc-stan.org/t/includes/1040)

<div class="topic-metadata">

**Author:** [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Replies:** 5\
**Last updated:** [July 19, 2017, 10:22pm UTC](https://discourse.mc-stan.org/t/includes/1040 "2017-07-19T22:22:47Z")

</div>

How are the interfaces supposed to use includes in 2.16? I have bar.stan parameters { #include baz.stan } model { target += normal\_lpdf(theta | 0, 1); } and baz.stan real theta; And I pass the path of baz…

---

## [Stan behavior changed in the last few days](https://discourse.mc-stan.org/t/stan-behavior-changed-in-the-last-few-days/945)

<div class="topic-metadata">

**Author:** [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Replies:** 17\
**Last updated:** [June 17, 2017, 8:01pm UTC](https://discourse.mc-stan.org/t/stan-behavior-changed-in-the-last-few-days/945 "2017-06-17T20:01:25Z")

</div>

Did anyone merge anything into Stan that knowingly changed behavior? It started here (see the change log): http://d1m1s1b1.stat.columbia.edu:8080/job/Daily%20Stan%20Performance/887/ I'm looking here at the recently c…

---

## [Mathematica help again, @Vincent?](https://discourse.mc-stan.org/t/mathematica-help-again-vincent/347)

<div class="topic-metadata">

**Author:** [@sakrejda](https://discourse.mc-stan.org/u/sakrejda)\
**Replies:** 11\
**Last updated:** [May 8, 2017, 2:06pm UTC](https://discourse.mc-stan.org/t/mathematica-help-again-vincent/347 "2017-05-08T14:06:28Z")

</div>

I wrote a few different calculations of d(gamma\_p)/da and I'd like to document where the different versions perform best and where I should use limits/approximations. I know I have at least one where the current version…

---

## [Beta\_binomial test failure](https://discourse.mc-stan.org/t/beta-binomial-test-failure/319)

<div class="topic-metadata">

**Author:** [@sakrejda](https://discourse.mc-stan.org/u/sakrejda)\
**Replies:** 6\
**Last updated:** [April 3, 2017, 6:52pm UTC](https://discourse.mc-stan.org/t/beta-binomial-test-failure/319 "2017-04-03T18:52:44Z")

</div>

Here's the test: TEST(ProbBetaBinomial, lcdf\_matches\_mathematica) { int n = 8; int N = 10; double alpha = 3.0; double beta = 1.0; EXPECT\_FLOAT\_EQ(-0.5500463, (stan::math::beta\_binomial\_lcdf(n, N, alpha, bet…

---

## [How do I create a tag?](https://discourse.mc-stan.org/t/how-do-i-create-a-tag/47)

<div class="topic-metadata">

**Author:** [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 2:41pm UTC](https://discourse.mc-stan.org/t/how-do-i-create-a-tag/47 "2016-08-19T14:41:32Z")

</div>

I'm still looking for it. The tags I want to replace the old subcategories for the Developers category: \* Bugs \* Maintenance \* Features
