# \#features

**URL:** https://discourse.mc-stan.org/tag/features/3.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)

---

## [Parallel dynamic HMC merits](https://discourse.mc-stan.org/t/parallel-dynamic-hmc-merits/10895)

<div class="topic-metadata">

**Author:** [@wds15](https://discourse.mc-stan.org/u/wds15)\
**Replies:** 41\
**Last updated:** [March 27, 2026, 4:18pm UTC](https://discourse.mc-stan.org/t/parallel-dynamic-hmc-merits/10895 "2026-03-27T16:18:49Z")

</div>

Hi there! I have been thinking about parallelizing our dynamic HMC sampler. The obvious strategy to do that is to pre-sample all the fwd and bck turns up to the maximal treedepth then expand the fwd and back trajector…

---

## [Log of modified\_bessel\_first\_kind](https://discourse.mc-stan.org/t/log-of-modified-bessel-first-kind/842)

<div class="topic-metadata">

**Author:** [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Replies:** 28\
**Last updated:** [July 7, 2024, 1:29am UTC](https://discourse.mc-stan.org/t/log-of-modified-bessel-first-kind/842 "2024-07-07T01:29:12Z")

</div>

As I was saying this morning, I have been working on the logarithm of one of the Bessel functions and have some questions about the implementation. Currently our Bessel functions can only be evaluated at integer orders e…

---

## [Feature request: new type signature for categorical\_logit\_glm](https://discourse.mc-stan.org/t/feature-request-new-type-signature-for-categorical-logit-glm/30375)

<div class="topic-metadata">

**Author:** [@tomas.rossetti](https://discourse.mc-stan.org/u/tomas.rossetti)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 7:15am UTC](https://discourse.mc-stan.org/t/feature-request-new-type-signature-for-categorical-logit-glm/30375 "2023-02-15T07:15:08Z")

</div>

I specialize in discrete choice models (multinomial regressions, i.e., logit), and I’ve been unable to really take advantage of categorical\_logit\_glm when the logit of each outcome depends on different variables. Take t…

---

## [1D and 2D convolution functions in stan](https://discourse.mc-stan.org/t/1d-and-2d-convolution-functions-in-stan/28854)

<div class="topic-metadata">

**Author:** [@nikunj410](https://discourse.mc-stan.org/u/nikunj410)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 5:16pm UTC](https://discourse.mc-stan.org/t/1d-and-2d-convolution-functions-in-stan/28854 "2022-09-19T17:16:00Z")

</div>

I am working on modeling species invasion using an integro differential equation framework, N \_{r,t+1} = \\int\_{0}^{\\infty} \\int\_{0}^{2\\pi} k(|r-r'|) f(N \_{r',t}) dr'd\\theta, where N \_{r,t} is the population at location…

---

## [Feature request for documentation](https://discourse.mc-stan.org/t/feature-request-for-documentation/27158)

<div class="topic-metadata">

**Author:** [@Richard\_Erickson](https://discourse.mc-stan.org/u/Richard_Erickson)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 4:37pm UTC](https://discourse.mc-stan.org/t/feature-request-for-documentation/27158 "2022-04-15T16:37:47Z")

</div>

Some projects, such as the book R for Data Science, include a “view source code on GitHub button”. I would like to request the Stan documentation includes a similar feature. This would allow users to easily suggest fixe…

---

## [Adding (time-varying) intercepts in gaussian\_dlm\_obs](https://discourse.mc-stan.org/t/adding-time-varying-intercepts-in-gaussian-dlm-obs/22862)

<div class="topic-metadata">

**Author:** [@FDallOlio](https://discourse.mc-stan.org/u/FDallOlio)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 8:30am UTC](https://discourse.mc-stan.org/t/adding-time-varying-intercepts-in-gaussian-dlm-obs/22862 "2021-06-05T08:30:36Z")

</div>

Would it be possible to extend gaussian\_dlm\_obs to include time varying intercept? As in: y\_t \\sim N(c\_t+F'\_t \\theta\_t ,V\_t) \\theta\_t \\sim N(d\_t + G\_t \\theta\_{t-1}, W\_t) \\theta\_0 \\sim N(m\_0, C\_0) It is easy to by…

---

## [Accessing values of the association variable generated by joint models](https://discourse.mc-stan.org/t/accessing-values-of-the-association-variable-generated-by-joint-models/22110)

<div class="topic-metadata">

**Author:** [@clairvoyant](https://discourse.mc-stan.org/u/clairvoyant)\
**Replies:** 7\
**Last updated:** [May 2, 2021, 12:04am UTC](https://discourse.mc-stan.org/t/accessing-values-of-the-association-variable-generated-by-joint-models/22110 "2021-05-02T00:04:11Z")

</div>

Is there any way to access the values of the association variables that are generated by the longitudinal submodels (e.g. etavalue, etaauc etc.) that link these models and the event submodel? For example, could you lo…

---

## [Current state of checkpointing in Stan](https://discourse.mc-stan.org/t/current-state-of-checkpointing-in-stan/12348)

<div class="topic-metadata">

**Author:** [@mtwest](https://discourse.mc-stan.org/u/mtwest)\
**Replies:** 27\
**Last updated:** [November 18, 2020, 9:54pm UTC](https://discourse.mc-stan.org/t/current-state-of-checkpointing-in-stan/12348 "2020-11-18T21:54:05Z")

</div>

As checkpointing seems to have multiple meanings in computing these days, I mean periodically saving job progress to allow one to restart jobs on a batch system that may have stopped due to priority issue or transient fa…

---

## [2D convolution in stan](https://discourse.mc-stan.org/t/2d-convolution-in-stan/13668)

<div class="topic-metadata">

**Author:** [@nwilming](https://discourse.mc-stan.org/u/nwilming)\
**Replies:** 5\
**Last updated:** [July 22, 2020, 8:34pm UTC](https://discourse.mc-stan.org/t/2d-convolution-in-stan/13668 "2020-07-22T20:34:52Z")

</div>

Dear Stan community, first of all thanks for providing this amazing tool. I’ve been using Stan for some time now, but would not consider myself to be an expert. For one of the projects that I am working on, my measureme…

---

## [Gamma quantile function](https://discourse.mc-stan.org/t/gamma-quantile-function/152)

<div class="topic-metadata">

**Author:** [@sakrejda](https://discourse.mc-stan.org/u/sakrejda)\
**Replies:** 29\
**Last updated:** [July 1, 2020, 7:42pm UTC](https://discourse.mc-stan.org/t/gamma-quantile-function/152 "2020-07-01T19:42:30Z")

</div>

Am I right that we don't have the quantile function for the gamma density? I was looking at putting priors on the median rather than the scale parameter for generalized gamma models to make them more comparable with gamm…

---

## [Schur decomposition ready?](https://discourse.mc-stan.org/t/schur-decomposition-ready/14794)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.mc-stan.org/u/spinkney)\
**Replies:** 14\
**Last updated:** [May 18, 2020, 1:14am UTC](https://discourse.mc-stan.org/t/schur-decomposition-ready/14794 "2020-05-18T01:14:24Z")

</div>

When will the schur decomposition be available? Also, I’m interested in the real case (as I saw the complex number post on Gelman’s blog at what can we do with complex numbers in stan. I’m interested in writing the “uni…

---

## [Sampler Diagnostics](https://discourse.mc-stan.org/t/sampler-diagnostics/12033)

<div class="topic-metadata">

**Author:** [@Raoul-Kima](https://discourse.mc-stan.org/u/Raoul-Kima)\
**Replies:** 39\
**Last updated:** [April 5, 2020, 1:20pm UTC](https://discourse.mc-stan.org/t/sampler-diagnostics/12033 "2020-04-05T13:20:21Z")

</div>

When encountering divergences, I often have the problem that these divergences are spread out all over the posterior distribution (or at least the part of it that was already sampled). This makes it difficult to pin down…

---

## [Multi normal pdf with low rank covariance matrix](https://discourse.mc-stan.org/t/multi-normal-pdf-with-low-rank-covariance-matrix/13054)

<div class="topic-metadata">

**Author:** [@jtimonen](https://discourse.mc-stan.org/u/jtimonen)\
**Replies:** 4\
**Last updated:** [February 13, 2020, 8:27pm UTC](https://discourse.mc-stan.org/t/multi-normal-pdf-with-low-rank-covariance-matrix/13054 "2020-02-13T20:27:45Z")

</div>

In my understanding, the Stan function for computing the log density \\log \\text{MultiNormal}(y \\mid \\mu, \\Sigma), i.e., multi\_normal\_lpdf, requires inversion of the n \\times n matrix \\Sigma, which is an O(n^3) operati…

---

## [Will stanc3 be able to identify mismatches between data constraints and distribution?](https://discourse.mc-stan.org/t/will-stanc3-be-able-to-identify-mismatches-between-data-constraints-and-distribution/11101)

<div class="topic-metadata">

**Author:** [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Replies:** 9\
**Last updated:** [January 28, 2020, 12:14pm UTC](https://discourse.mc-stan.org/t/will-stanc3-be-able-to-identify-mismatches-between-data-constraints-and-distribution/11101 "2020-01-28T12:14:57Z")

</div>

@seantalts @Matthijs @enetsee @rybern (not sure who to tag specifically!) With the current/old stanc the following Stan program won’t have any issues (until runtime) even though a human can see that the bounds on y are i…

---

## [Extending gaussian\_dlm\_obs](https://discourse.mc-stan.org/t/extending-gaussian-dlm-obs/12085)

<div class="topic-metadata">

**Author:** [@Kevin\_Van\_Horn](https://discourse.mc-stan.org/u/Kevin_Van_Horn)\
**Replies:** 0\
**Last updated:** [November 26, 2019, 11:00pm UTC](https://discourse.mc-stan.org/t/extending-gaussian-dlm-obs/12085 "2019-11-26T23:00:21Z")

</div>

I need support for time-varying system matrices when fitting dynamic linear models, a feature not currently supported by gaussian\_dlm\_obs(), so I have filed an issue #2854 in the stan repository. I plan to implement this…

---

## [GP functor gp\_lpdf questions](https://discourse.mc-stan.org/t/gp-functor-gp-lpdf-questions/7778)

<div class="topic-metadata">

**Author:** [@anon79882417](https://discourse.mc-stan.org/u/anon79882417)\
**Replies:** 4\
**Last updated:** [November 17, 2019, 4:38am UTC](https://discourse.mc-stan.org/t/gp-functor-gp-lpdf-questions/7778 "2019-11-17T04:38:16Z")

</div>

Dear all, I’m opening this thread to ask some questions about issue #1011, the GP Functor specification. It’s been beautifully outlined for me, to make my job a lot easier/faster. I’m anticipating mostly C++ questions. …

---

## [Providing built stanc3 with additional (non-master branch) features](https://discourse.mc-stan.org/t/providing-built-stanc3-with-additional-non-master-branch-features/11907)

<div class="topic-metadata">

**Author:** [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Replies:** 8\
**Last updated:** [November 16, 2019, 4:56pm UTC](https://discourse.mc-stan.org/t/providing-built-stanc3-with-additional-non-master-branch-features/11907 "2019-11-16T16:56:59Z")

</div>

We currently have a separate branch of Cmdstan+Stan+Math that supports some additional custom functions we added to stanc2. The functions are very specific and it probably makes no sense to try to add them to the Stan l…

---

## [Stein approximations and MCMC](https://discourse.mc-stan.org/t/stein-approximations-and-mcmc/11844)

<div class="topic-metadata">

**Author:** [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Replies:** 4\
**Last updated:** [November 12, 2019, 12:33am UTC](https://discourse.mc-stan.org/t/stein-approximations-and-mcmc/11844 "2019-11-12T00:33:20Z")

</div>

Has anyone looked into It seems as if the authors are at least worried about the right things and the method utilizes gradients, so it would be well-suited for Stan. But they weirdly don’t compare their experiment…

---

## [Developing Services](https://discourse.mc-stan.org/t/developing-services/10036)

<div class="topic-metadata">

**Author:** [@anon79882417](https://discourse.mc-stan.org/u/anon79882417)\
**Replies:** 7\
**Last updated:** [August 8, 2019, 4:43pm UTC](https://discourse.mc-stan.org/t/developing-services/10036 "2019-08-08T16:43:36Z")

</div>

I’m adding some functionality to services, that is, K-hat and ESS for the VI diagnostics. Is there anything else that we’re currently implementing in one of our interfaces that we’d like to add to services?

---

## [Eigen levenbergmarquardt in Stan](https://discourse.mc-stan.org/t/eigen-levenbergmarquardt-in-stan/9132)

<div class="topic-metadata">

**Author:** [@andre.pfeuffer](https://discourse.mc-stan.org/u/andre.pfeuffer)\
**Replies:** 1\
**Last updated:** [June 7, 2019, 7:36pm UTC](https://discourse.mc-stan.org/t/eigen-levenbergmarquardt-in-stan/9132 "2019-06-07T19:36:21Z")

</div>

Wiling to do a curve fitting within Stan, I came along Eigen’s Levenberg-Marquardt Algorithm. I nice way to use the routines are shown in: I would code my optimization function directly in the routine as shown in the…

---

## [ODE Roadmap. Different Solvers?](https://discourse.mc-stan.org/t/ode-roadmap-different-solvers/8766)

<div class="topic-metadata">

**Author:** [@mathDR](https://discourse.mc-stan.org/u/mathDR)\
**Replies:** 6\
**Last updated:** [May 10, 2019, 8:00am UTC](https://discourse.mc-stan.org/t/ode-roadmap-different-solvers/8766 "2019-05-10T08:00:22Z")

</div>

Hello. I was wondering if there was a roadmap for ODE solver development. In particular, using rk45 entails making four function evaluations per time step update. Implementing a method like Adams Bashforth Moulton or …

---

## [Standalone generated quantities - comments welcome](https://discourse.mc-stan.org/t/standalone-generated-quantities-comments-welcome/7366)

<div class="topic-metadata">

**Author:** [@mitzimorris](https://discourse.mc-stan.org/u/mitzimorris)\
**Replies:** 32\
**Last updated:** [May 1, 2019, 2:14pm UTC](https://discourse.mc-stan.org/t/standalone-generated-quantities-comments-welcome/7366 "2019-05-01T14:14:17Z")

</div>

Stan’s standalone generated quantities service stan::service::standalone\_gqs now takes as input the fitted parameter values on the constrained scale, i.e., as output by the sampler. This means that it should be relativ…

---

## [Stan3 - enable underscores in numbers](https://discourse.mc-stan.org/t/stan3-enable-underscores-in-numbers/6536)

<div class="topic-metadata">

**Author:** [@ahartikainen](https://discourse.mc-stan.org/u/ahartikainen)\
**Replies:** 14\
**Last updated:** [November 29, 2018, 3:54pm UTC](https://discourse.mc-stan.org/t/stan3-enable-underscores-in-numbers/6536 "2018-11-29T15:54:28Z")

</div>

Hi, would it be possible to “enable” underscores in numbers, which would be just ignored by the compiler (Stan-\>C++). Currently in python this is a nice and handy property. 10000 :: 100000 :: 1000000 vs 10\_000 :: 100…

---

## [GPU Update: what's up and where we are going](https://discourse.mc-stan.org/t/gpu-update-whats-up-and-where-we-are-going/6015)

<div class="topic-metadata">

**Author:** [@stevebronder](https://discourse.mc-stan.org/u/stevebronder)\
**Replies:** 29\
**Last updated:** [November 12, 2018, 7:36am UTC](https://discourse.mc-stan.org/t/gpu-update-whats-up-and-where-we-are-going/6015 "2018-11-12T07:36:02Z")

</div>

Hi everyone! it’s been a minute so I though some people would want a status update on the GPU stuff and what’s going on. We are finishing up the PR for the inverse on the GPU (to the point of naming things and adding so…

---

## ["Initialization failed" error messages](https://discourse.mc-stan.org/t/initialization-failed-error-messages/5063)

<div class="topic-metadata">

**Author:** [@Bonnevie](https://discourse.mc-stan.org/u/Bonnevie)\
**Replies:** 6\
**Last updated:** [August 7, 2018, 8:01pm UTC](https://discourse.mc-stan.org/t/initialization-failed-error-messages/5063 "2018-08-07T20:01:08Z")

</div>

I realize that this issue might have its share of technical challenges, but it has been my experience that a lot of my more time-consuming Stan problems are met with the vague “initialization failed” error message. Track…

---

## [Vectorized scale\_matrix\_exp\_multiply](https://discourse.mc-stan.org/t/vectorized-scale-matrix-exp-multiply/4802)

<div class="topic-metadata">

**Author:** [@Stijn\_de\_Waele](https://discourse.mc-stan.org/u/Stijn_de_Waele)\
**Replies:** 5\
**Last updated:** [July 17, 2018, 3:07pm UTC](https://discourse.mc-stan.org/t/vectorized-scale-matrix-exp-multiply/4802 "2018-07-17T15:07:00Z")

</div>

I would like to compute the solution of an ODE at several (irregularly spaced) times ts. This computation can currently be done in a loop: for (t in ts) y\[t\] = matrix\_exp(t \* A) \* y0; My question is: Would it be poss…

---

## [Proposal for consolidated output](https://discourse.mc-stan.org/t/proposal-for-consolidated-output/4263)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 39\
**Last updated:** [July 8, 2018, 9:45pm UTC](https://discourse.mc-stan.org/t/proposal-for-consolidated-output/4263 "2018-07-08T21:45:26Z")

</div>

When discussing possible additional diagnostic outputs from Stan at http://discourse.mc-stan.org/t/getting-the-location-gradients-of-divergences-not-of-iteration-starting-points/4226, we realized that a better plumbing o…

---

## [System time function for profiling](https://discourse.mc-stan.org/t/system-time-function-for-profiling/4432)

<div class="topic-metadata">

**Author:** [@benjsmith](https://discourse.mc-stan.org/u/benjsmith)\
**Replies:** 3\
**Last updated:** [June 15, 2018, 9:21pm UTC](https://discourse.mc-stan.org/t/system-time-function-for-profiling/4432 "2018-06-15T21:21:54Z")

</div>

I have looked right through the stan manual v2.17, and don’t see any function to get the system time. Does any exist? It would be really useful to be able to get the system time in milliseconds (as an integer/real) in o…

---

## [Has anyone tried coding a profilers for Stan programs?](https://discourse.mc-stan.org/t/has-anyone-tried-coding-a-profilers-for-stan-programs/4209)

<div class="topic-metadata">

**Author:** [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Replies:** 2\
**Last updated:** [May 21, 2018, 2:16am UTC](https://discourse.mc-stan.org/t/has-anyone-tried-coding-a-profilers-for-stan-programs/4209 "2018-05-21T02:16:00Z")

</div>

@yizhang asked this question and I thought I would put up the question and answer here so people can find it. No. There’s a good reason. First, the only block that takes a while is the model block, unless there’s an er…

---

## [Autodiff expression graph optimizations](https://discourse.mc-stan.org/t/autodiff-expression-graph-optimizations/289)

<div class="topic-metadata">

**Author:** [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Replies:** 4\
**Last updated:** [April 18, 2018, 2:28pm UTC](https://discourse.mc-stan.org/t/autodiff-expression-graph-optimizations/289 "2018-04-18T14:28:43Z")

</div>

Hey, Bob and I have been occasionally talking about potential compiler/query-style optimizations for the autodiff expression, things like common subexpression elimination, node fusion, and a variety of peephole optimizat…

[Next page](https://discourse.mc-stan.org/tag/features/3.md?match_all_tags=true&page=1&tags%5B%5D=features)
