# Other

**URL:** https://discourse.mc-stan.org/c/interfaces/other-interfaces/31.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)

---

## [About the Other category](https://discourse.mc-stan.org/t/about-the-other-category/376)

<div class="topic-metadata">

**Author:** [@betanalpha](https://discourse.mc-stan.org/u/betanalpha)\
**Replies:** 0

</div>

This category is for questions regarding the installation and use of interfaces without their own categories, such as MatlabStan and Julia.Stan. If you have installation issues then please provide as much information ab…

---

## [Ggdist::marginalize\_lkjcorr() not working as intended](https://discourse.mc-stan.org/t/ggdist-marginalize-lkjcorr-not-working-as-intended/41658)

<div class="topic-metadata">

**Author:** [@blokeman](https://discourse.mc-stan.org/u/blokeman)\
**Replies:** 4\
**Last updated:** [October 20, 2026, 9:30pm UTC](https://discourse.mc-stan.org/t/ggdist-marginalize-lkjcorr-not-working-as-intended/41658 "2026-10-20T21:30:20Z")

</div>

I can’t visualize the lkj priors of my correlation parameters because I can’t find how to convert the lkj\_corr\_cholesky(eta) priors into .dist objects that stat\_slabinterval() would understand. The marginalize\_lkjcorr() …

---

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

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.mc-stan.org/u/bparbhu)\
**Replies:** 1\
**Last updated:** [April 28, 2026, 2:52am UTC](https://discourse.mc-stan.org/t/stan-jl-v10-8-4-released/41079 "2026-04-28T02:52:30Z")

</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…

---

## [Error in executing an example in Torsten 0.91.2](https://discourse.mc-stan.org/t/error-in-executing-an-example-in-torsten-0-91-2/40195)

<div class="topic-metadata">

**Author:** [@Johnny0514](https://discourse.mc-stan.org/u/Johnny0514)\
**Replies:** 7\
**Last updated:** [August 20, 2025, 4:57pm UTC](https://discourse.mc-stan.org/t/error-in-executing-an-example-in-torsten-0-91-2/40195 "2025-08-20T16:57:22Z")

</div>

Dear everyone: I have installed cmdstanr and Torsten 0.91.2. When I tried to execute the test example, the error occurred, as shown below: C:/rtools45/x86\_64-w64-mingw32.static.posix/lib/gcc/x86\_64-w64-mingw32.static.p…

---

## [Using priorsense for a latent variable model](https://discourse.mc-stan.org/t/using-priorsense-for-a-latent-variable-model/39203)

<div class="topic-metadata">

**Author:** [@CurtisAtkisson](https://discourse.mc-stan.org/u/CurtisAtkisson)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 7:01pm UTC](https://discourse.mc-stan.org/t/using-priorsense-for-a-latent-variable-model/39203 "2025-04-03T19:01:21Z")

</div>

I am developing a structured model that has a latent variable portion. I am taking the approach outlined in Full Luxury Bayesian SEM. Models will be of the form (stealing from the link): bf\_lv \<- # The LV itself - pe…

---

## [Stan Playground Issues with Pasting Scripts](https://discourse.mc-stan.org/t/stan-playground-issues-with-pasting-scripts/37498)

<div class="topic-metadata">

**Author:** [@icostley](https://discourse.mc-stan.org/u/icostley)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 5:31pm UTC](https://discourse.mc-stan.org/t/stan-playground-issues-with-pasting-scripts/37498 "2024-12-04T17:31:56Z")

</div>

Hello, First, big thank you to all that have worked to make the Stan Playground a reality. It has been something I have been hoping for since I started using Stan! I was playing around with a simple model for a teachin…

---

## [Projpred error: "factor has new levels"](https://discourse.mc-stan.org/t/projpred-error-factor-has-new-levels/36873)

<div class="topic-metadata">

**Author:** [@vvp1](https://discourse.mc-stan.org/u/vvp1)\
**Replies:** 6\
**Last updated:** [November 7, 2024, 3:14pm UTC](https://discourse.mc-stan.org/t/projpred-error-factor-has-new-levels/36873 "2024-11-07T15:14:44Z")

</div>

I have fitted a logistic regression with a regularised horshoe prior using rstanarm. The number of covariates is over 7000 and a few of them are categorical. One of the categorical covariates is race and has tree levels…

---

## [Tidybayes spread\_draws unexpected output](https://discourse.mc-stan.org/t/tidybayes-spread-draws-unexpected-output/35660)

<div class="topic-metadata">

**Author:** [@Giacomo](https://discourse.mc-stan.org/u/Giacomo)\
**Replies:** 5\
**Last updated:** [July 2, 2024, 9:09am UTC](https://discourse.mc-stan.org/t/tidybayes-spread-draws-unexpected-output/35660 "2024-07-02T09:09:15Z")

</div>

Hi, I’m having an issue with using the R tidybayes::spread\_draws function to extract draws of a random slope coefficient in brms model. It is giving me twice the number of draws I expect, and the second half seem not c…

---

## [Variational Bayes "fitting finished unexpectedly": Arithmetic exception from scale\_matrix\_exp\_multiply()](https://discourse.mc-stan.org/t/variational-bayes-fitting-finished-unexpectedly-arithmetic-exception-from-scale-matrix-exp-multiply/35532)

<div class="topic-metadata">

**Author:** [@karimn](https://discourse.mc-stan.org/u/karimn)\
**Replies:** 3\
**Last updated:** [June 24, 2024, 2:53pm UTC](https://discourse.mc-stan.org/t/variational-bayes-fitting-finished-unexpectedly-arithmetic-exception-from-scale-matrix-exp-multiply/35532 "2024-06-24T14:53:42Z")

</div>

Hi, I’m having a problem running a variational model. I’m getting the below error when I run a Linux server, but the exact same code works perfectly fine on a Mac. \> barcode\_model$variational(experiment\_stan\_data, thre…

---

## [LoadLibrary failure: when compiling model methods with cmdstanr and Rtools 4.3](https://discourse.mc-stan.org/t/loadlibrary-failure-when-compiling-model-methods-with-cmdstanr-and-rtools-4-3/32443)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 7\
**Last updated:** [April 16, 2024, 12:19am UTC](https://discourse.mc-stan.org/t/loadlibrary-failure-when-compiling-model-methods-with-cmdstanr-and-rtools-4-3/32443 "2024-04-16T00:19:49Z")

</div>

When trying to use the new infrastructure to expose model methods with cmdstanr 0.6 on Windows 10, R 4.3.1 and Rtools 4.3 I get the following message: Error in inDL(x, as.logical(local), as.logical(now), ...) : unabl…

---

## [Variable selection with cmdstanr and projpred](https://discourse.mc-stan.org/t/variable-selection-with-cmdstanr-and-projpred/34435)

<div class="topic-metadata">

**Author:** [@fabio](https://discourse.mc-stan.org/u/fabio)\
**Replies:** 4\
**Last updated:** [March 11, 2024, 6:44pm UTC](https://discourse.mc-stan.org/t/variable-selection-with-cmdstanr-and-projpred/34435 "2024-03-11T18:44:58Z")

</div>

Hi dear Stan community! I would like to perform Projection Predictive Feature Selection - more specifically the rankig of the predictors - and using the cmdstanr interface to handle R code, Stan code, compliations… Wh…

---

## [Cmdstanr, cannot set the file path to the CmdStan installation](https://discourse.mc-stan.org/t/cmdstanr-cannot-set-the-file-path-to-the-cmdstan-installation/15056)

<div class="topic-metadata">

**Author:** [@shira](https://discourse.mc-stan.org/u/shira)\
**Replies:** 10\
**Last updated:** [February 3, 2024, 12:44am UTC](https://discourse.mc-stan.org/t/cmdstanr-cannot-set-the-file-path-to-the-cmdstan-installation/15056 "2024-02-03T00:44:35Z")

</div>

I can’t seem to set the file path to the CmdStan installation: \> devtools::install\_github("stan-dev/cmdstanr") ... Installing package into ‘/home/shira-rstudio/R/x86\_64-pc-linux-gnu-library/3.5’ (as ‘lib’ is unspecified…

---

## [Cannot run bernoulli.stan example in cmdstanr](https://discourse.mc-stan.org/t/cannot-run-bernoulli-stan-example-in-cmdstanr/33674)

<div class="topic-metadata">

**Author:** [@mjblotinga](https://discourse.mc-stan.org/u/mjblotinga)\
**Replies:** 2\
**Last updated:** [January 2, 2024, 12:14pm UTC](https://discourse.mc-stan.org/t/cannot-run-bernoulli-stan-example-in-cmdstanr/33674 "2024-01-02T12:14:35Z")

</div>

Successfully installed CmdStan using the C++ compiler toolchain route and a clone of the github repo (having been unable to get fresh conda env installs to work at all) into C:\\ProgramData\\cmdstan. Then followed all requ…

---

## [Fresh Conda installation of cmdstanpy does not work with bernoulli.stan example](https://discourse.mc-stan.org/t/fresh-conda-installation-of-cmdstanpy-does-not-work-with-bernoulli-stan-example/33672)

<div class="topic-metadata">

**Author:** [@mjblotinga](https://discourse.mc-stan.org/u/mjblotinga)\
**Replies:** 4\
**Last updated:** [January 2, 2024, 2:34pm UTC](https://discourse.mc-stan.org/t/fresh-conda-installation-of-cmdstanpy-does-not-work-with-bernoulli-stan-example/33672 "2024-01-02T14:34:55Z")

</div>

Fresh Conda installation of cmdstanpy does not work with bernoulli.stan example. Have followed the installation instructions to create a new conda environment install of cmdstanpy (Conda 23.5.2, cmdstan 2.33.1, cmdstanp…

---

## [Draws\_pd returns diagnostic data columns by default on cmdstanpy 1.2](https://discourse.mc-stan.org/t/draws-pd-returns-diagnostic-data-columns-by-default-on-cmdstanpy-1-2/33329)

<div class="topic-metadata">

**Author:** [@akcchoi](https://discourse.mc-stan.org/u/akcchoi)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 5:52am UTC](https://discourse.mc-stan.org/t/draws-pd-returns-diagnostic-data-columns-by-default-on-cmdstanpy-1-2/33329 "2023-11-17T05:52:24Z")

</div>

Hi all, When calling \[CmdStanMCMC\].draws\_pd(“foo”), I would get a data frame with columns: chain\_\_, tier\_\_, and draw\_\_ in addition to the “foo” When calling \[CmdStanMCMC\].draws\_pd(). I wold get a data frame with column…

---

## [Trouble installing CMDstanR on Mac: is not available for this version of R](https://discourse.mc-stan.org/t/trouble-installing-cmdstanr-on-mac-is-not-available-for-this-version-of-r/25903)

<div class="topic-metadata">

**Author:** [@mono11](https://discourse.mc-stan.org/u/mono11)\
**Replies:** 4\
**Last updated:** [October 2, 2023, 1:09pm UTC](https://discourse.mc-stan.org/t/trouble-installing-cmdstanr-on-mac-is-not-available-for-this-version-of-r/25903 "2023-10-02T13:09:06Z")

</div>

Hi all, I am having issues installing CMDstanR package. Error code: \> install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) Warning in install.packages : unable to access inde…

---

## [Create MatlabStan StanFit object from existing samples](https://discourse.mc-stan.org/t/create-matlabstan-stanfit-object-from-existing-samples/2401)

<div class="topic-metadata">

**Author:** [@noxtoby](https://discourse.mc-stan.org/u/noxtoby)\
**Replies:** 3\
**Last updated:** [May 22, 2023, 3:44pm UTC](https://discourse.mc-stan.org/t/create-matlabstan-stanfit-object-from-existing-samples/2401 "2023-05-22T15:44:28Z")

</div>

G’day folks, A successful call to stan.m returns a StanFit object that can access all of Brian’s neat code, including StanFit.extract() for extracting samples. What I want to be able to do is create a StanFit object di…

---

## [Draws of named and derived parameters in blavaan](https://discourse.mc-stan.org/t/draws-of-named-and-derived-parameters-in-blavaan/31454)

<div class="topic-metadata">

**Author:** [@simonbrauer](https://discourse.mc-stan.org/u/simonbrauer)\
**Replies:** 2\
**Last updated:** [May 19, 2023, 8:58pm UTC](https://discourse.mc-stan.org/t/draws-of-named-and-derived-parameters-in-blavaan/31454 "2023-05-19T20:58:48Z")

</div>

Say I specify a blavaan model with named and derived parameters, such as with the simple mediation model below. model\_str \<- 'mpg ~ 1 + b11\*cyl + b12\*hp hp ~ 1 + b21\*cyl mpg ~~ mpg hp…

---

## [Sampling in parallel with MatlabStan](https://discourse.mc-stan.org/t/sampling-in-parallel-with-matlabstan/31203)

<div class="topic-metadata">

**Author:** [@Stansy](https://discourse.mc-stan.org/u/Stansy)\
**Replies:** 0\
**Last updated:** [April 26, 2023, 11:05am UTC](https://discourse.mc-stan.org/t/sampling-in-parallel-with-matlabstan/31203 "2023-04-26T11:05:48Z")

</div>

I would like to enable parallel processing (parallel sampling of chains) when using MatlabStan. However, the stan()-Matlab-function has no such parameter. Does anyone now how to enable this? I my “local” file in the cmd…

---

## [Unable to install cmdstanr on Mac ventura M1 MacBook Air](https://discourse.mc-stan.org/t/unable-to-install-cmdstanr-on-mac-ventura-m1-macbook-air/29471)

<div class="topic-metadata">

**Author:** [@akcchoi](https://discourse.mc-stan.org/u/akcchoi)\
**Replies:** 13\
**Last updated:** [November 15, 2022, 9:34am UTC](https://discourse.mc-stan.org/t/unable-to-install-cmdstanr-on-mac-ventura-m1-macbook-air/29471 "2022-11-15T09:34:48Z")

</div>

In RStudio: \> install.packages("cmdstanr", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) Installing package into ‘/Users/andy/Library/R/arm64/4.2/library’ (as ‘lib’ is unspecified) also installing th…

---

## [Out of memory when calculating loo with a large log\_lik (8G)](https://discourse.mc-stan.org/t/out-of-memory-when-calculating-loo-with-a-large-log-lik-8g/26849)

<div class="topic-metadata">

**Author:** [@Michelle](https://discourse.mc-stan.org/u/Michelle)\
**Replies:** 9\
**Last updated:** [March 19, 2022, 7:10pm UTC](https://discourse.mc-stan.org/t/out-of-memory-when-calculating-loo-with-a-large-log-lik-8g/26849 "2022-03-19T19:10:22Z")

</div>

Dear Stan community, May I ask how much memory loo() function suppose to use with a known log\_lik matrix size? In my case, log\_lik is a matrix of 8G, I only use one core to calculate loo(log\_lik, save\_psis = FALSE) and …

---

## [CmdStanPy 1.0.1](https://discourse.mc-stan.org/t/cmdstanpy-1-0-1/26342)

<div class="topic-metadata">

**Author:** [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 5:29pm UTC](https://discourse.mc-stan.org/t/cmdstanpy-1-0-1/26342 "2022-02-14T17:29:17Z")

</div>

A new minor release for CmdStanPy is available which fixes a number of bugs reported in 1.0.0 CmdStanPy 1.0.1 Support new optimizations in CmdStan 2.29 Support complex numbers as both inputs and outputs of Stan program…

---

## [Combining posterior data from multiple chains when saving .csv output from CmdStanR inference object](https://discourse.mc-stan.org/t/combining-posterior-data-from-multiple-chains-when-saving-csv-output-from-cmdstanr-inference-object/26168)

<div class="topic-metadata">

**Author:** [@xiehw](https://discourse.mc-stan.org/u/xiehw)\
**Replies:** 2\
**Last updated:** [February 1, 2022, 9:47pm UTC](https://discourse.mc-stan.org/t/combining-posterior-data-from-multiple-chains-when-saving-csv-output-from-cmdstanr-inference-object/26168 "2022-02-01T21:47:22Z")

</div>

Hi All, Some colleagues of mine are looking to plot posteriors from an inference I ran in CmdStanR in Python. I figured the best way to do it would be to generate a csv output. Initially I did the following: CON\_stan\_f…

---

## [Trouble installing LMMELSM on a Unix server](https://discourse.mc-stan.org/t/trouble-installing-lmmelsm-on-a-unix-server/25315)

<div class="topic-metadata">

**Author:** [@mcraft](https://discourse.mc-stan.org/u/mcraft)\
**Replies:** 7\
**Last updated:** [November 19, 2021, 1:29am UTC](https://discourse.mc-stan.org/t/trouble-installing-lmmelsm-on-a-unix-server/25315 "2021-11-19T01:29:39Z")

</div>

A colleague of mine created the R package LMMELSM, which uses Stan behind the scenes. The package installs easily on my personal computer using install.packages(“LMMELSM”), but when I try to install it on a Unix server I…

---

## [Feature request: support for vectorized parameters in httpstan](https://discourse.mc-stan.org/t/feature-request-support-for-vectorized-parameters-in-httpstan/23596)

<div class="topic-metadata">

**Author:** [@dhowell](https://discourse.mc-stan.org/u/dhowell)\
**Replies:** 6\
**Last updated:** [July 23, 2021, 10:46am UTC](https://discourse.mc-stan.org/t/feature-request-support-for-vectorized-parameters-in-httpstan/23596 "2021-07-23T10:46:54Z")

</div>

As of version 4.5.0, httpstan’s log\_prob endpoint does not support models which define vectors of parameters. My team is interested in integrating Stan with a web application we are developing, and sadly this limitation …

---

## [Prior\_covariance for stan\_glmer](https://discourse.mc-stan.org/t/prior-covariance-for-stan-glmer/23203)

<div class="topic-metadata">

**Author:** [@charlesm93](https://discourse.mc-stan.org/u/charlesm93)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 6:15pm UTC](https://discourse.mc-stan.org/t/prior-covariance-for-stan-glmer/23203 "2021-06-30T18:15:49Z")

</div>

Hi all, I’m working through this excellent MRP case study, GitHub - JuanLopezMartin/MRPCaseStudy, but I’d like to change the prior on the covariance matrix. This makes it easier to benchmark the code against a method @…

---

## [CmdStan installation failed by using cmdstanpy.install\_cmdstan()](https://discourse.mc-stan.org/t/cmdstan-installation-failed-by-using-cmdstanpy-install-cmdstan/22097)

<div class="topic-metadata">

**Author:** [@xinyuanyan](https://discourse.mc-stan.org/u/xinyuanyan)\
**Replies:** 6\
**Last updated:** [May 5, 2021, 3:09pm UTC](https://discourse.mc-stan.org/t/cmdstan-installation-failed-by-using-cmdstanpy-install-cmdstan/22097 "2021-05-05T15:09:23Z")

</div>

I want to install cmdstanpy in the following way: import cmdstanpy cmdstanpy.install\_cmdstan() but the error reported as: WARNING:cmdstanpy:CmdStan installation failed. WARNING:cmdstanpy:Traceback (most recent call …

---

## [Sampling issues with matlab stan](https://discourse.mc-stan.org/t/sampling-issues-with-matlab-stan/22149)

<div class="topic-metadata">

**Author:** [@PPB](https://discourse.mc-stan.org/u/PPB)\
**Replies:** 3\
**Last updated:** [May 2, 2021, 3:45pm UTC](https://discourse.mc-stan.org/t/sampling-issues-with-matlab-stan/22149 "2021-05-02T15:45:57Z")

</div>

Short summary of the problem I face issues with sampling on running the classic example provided in the link Getting Started · brian-lau/MatlabStan Wiki · GitHub. The following is the error I see. output-1.csv: /home/……

---

## [Projectpred, BMA, variable selection and joint posterior probabilities](https://discourse.mc-stan.org/t/projectpred-bma-variable-selection-and-joint-posterior-probabilities/21633)

<div class="topic-metadata">

**Author:** [@datarichard](https://discourse.mc-stan.org/u/datarichard)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 7:11am UTC](https://discourse.mc-stan.org/t/projectpred-bma-variable-selection-and-joint-posterior-probabilities/21633 "2021-04-29T07:11:58Z")

</div>

Apologies if this is the wrong forum. I’m interested in using Aki Vehtari’s projectpred (Projection predictive variable selection – A review and recommendations for the practicing statistician) for variable selection, b…

---

## [Getting runtimeerror: ERROR when running cmdstanpy tutorial on google colab](https://discourse.mc-stan.org/t/getting-runtimeerror-error-when-running-cmdstanpy-tutorial-on-google-colab/22109)

<div class="topic-metadata">

**Author:** [@ek247375](https://discourse.mc-stan.org/u/ek247375)\
**Replies:** 1\
**Last updated:** [April 26, 2021, 12:54pm UTC](https://discourse.mc-stan.org/t/getting-runtimeerror-error-when-running-cmdstanpy-tutorial-on-google-colab/22109 "2021-04-26T12:54:26Z")

</div>

I am running the basic “hello world” tutorial for cmdstanpy found here. The problem I have is that I cannot access the sample summary. I get the following error. RuntimeError: ERROR The following argument was not expec…

[Next page](https://discourse.mc-stan.org/c/interfaces/other-interfaces/31.md?page=1)
