I'm trying to estimate the accuracy of the judgment for each time using the state-space model. The R code is as follows. MacOS 10.14.6, rstan 2.21.2 w ...
I'm trying to estimate the accuracy of the judgment for each time using the state-space model. The R code is as follows. MacOS 10.14.6, rstan 2.21.2 w ...
I am having trouble when I want to set initial values for parameters in a Stan program for MCMC using cmdstanr. The relevant guidance in the documenta ...
This feels like a duplicate question, but I can't find it anywhere here or elsewhere! So, in R, you can comment out a block of code with Ctrl + Shift ...
I saw a Stan program where the data block contained int person[N_obs]. Is this creating an array of integers of size N_obs that is called with person? ...
I am interested in models where the observed data is a discretization of a continuous latent parameter. As a simple example imagine that you have obs ...
Suppose I want to declare a matrix mat with ncol columns, where ncol is a function of some data foo. I could accomplish this with the below data block ...
I'm on a Mac X1, Monterey. I've installed prophet and run into this issue when trying to fit a model. I know this has to do with the wrong paths b ...
I run simulations on a hpc-cluster which are quite memory demanding. I'm fitting cmdstan models with 3000 iterations for different conditions(200 uniq ...
The default install location for cmdstan is $HOME/.cmdstan. In a singularity container, I can install cmdstan somewhere else (e.g., /opt/cmdstan). T ...
I am trying to follow along with a series of Stan modelling tutorials and demos for demographic analysis, which are based on models and code in Kéry a ...
I have a 6 by 3 (6 x 3) parameter matrix D (suppose). The specific cells of this matrix are zero. More specifically, Now how can I declare the matr ...
I made a certain Bayesian model, including the typical components (data, model, parameters, likelihood). This model is a linear regression: Due to ...
I have been trying to get brms/rstan to work on my system with limited luck. I have R 4.2 and am using R studio. I originally started doing this in R, ...
I am new at Stan and I'm struggling to understand the difference in how different variable declaration styles are used. In particular, I am confused a ...
I am using R 4.2.0 on Windows 11. When I load the rstan library, the R session is aborted. It says, "R encountered a fatal error. The session was term ...
rstan and brms cause r and rstudio session abort. Even re-installation of rstan and brms cause the error. Edited It is a bug in rstan and brms ...
I try to use STAN for inference of an SIR-model expressed as a three-dimensional SDE: The code for the model compiles without problems. But when I ...
I have a problem building a docker image with the following codes: And I failed to build the docker image with the following error: #10 224.1 E ...
I'm trying to install the package brms in R so that I can rename the parameters returned from the function stan (from the rstan package). When I try i ...
This is an extension of my previous post here Estimating parameters using stan when the distribution for response variable in a regression is non-norm ...