stan Questions
3
Solved
I'm on a Mac X1, Monterey.
I've installed prophet and run into this issue when trying to fit a model.
RuntimeError: Error during optimization: console log output:
dyld[90668]: Library not loaded: ...
Flashback asked 5/8, 2022 at 20:52
2
I would like to be able to suppress some output coming from fbprophet while fitting a forecasting model. This output ("Initial log joint probability...", "Optimization terminated normally:", "Conve...
1
I'm trying to build a survival model in JAGS that allows for time-varying covariates. I'd like it to be a parametric model — for example, assuming survival follows the Weibull distribution (but I'd...
Voight asked 20/4, 2016 at 4:8
2
Solved
What is the proper way to format a categorical predictor to use in STAN? I cannot seem to input a categorical predictor as a normal factor variable, so what is the quickest way to transform a norma...
2
Solved
I'm starting to learn Stan.
Could anyone explain when and how to use syntax such as... ?
target +=
instead of just:
y ~ normal(mu, sigma)
For example in Stan manual you can find the followi...
1
Solved
I am building a binomial regression model using 2 categorical variables. This is from an example in the book, Statistical rethinking. In the book, while using the rethinking package, we can set pri...
1
Solved
Is there a way to construct a matrix with simplex columns in Stan? The model I want to construct is similar to the following, where I model counts as dirichlet-multinomial:
data {
int g;
int c;
...
Zelazny asked 1/10, 2019 at 20:3
2
Solved
I'm not able to install rstanarm on R 3.5.3 running on Ubuntu 18.04 LTS. I used the following commands:
install.packages("rstanarm")
and
devtools::install_github("stan-dev/rstanarm", build_vign...
Kuebbing asked 10/4, 2019 at 11:42
1
Solved
I'm new to both stan and brms, and having trouble extracting posterior predictive distributions. Let's say I have a simple logistic regression
fit = brm(y ~ x, family="bernoulli", data=df.training...
2
Solved
I am doing a multiple regression in Stan.
I want a trace plot of the beta vector parameter for the regressors/design matrix.
When I do the following:
fit = model.sampling(data=data, iter=2000, c...
1
Solved
2
Solved
I would like to get the estimated coefficients of a model using rstan in an rnotebook
I have the following stan chunk:
```{stan output.var="rats"}
data {
int<lower=0> N;
int<lower=0>...
Pricecutting asked 3/2, 2018 at 1:14
1
Solved
The following are my r code.
```{r message=FALSE, warning=FALSE, cache=0,eval=TRUE, error=FALSE}
stan_m1 <- rethinking::map2stan(
alist(
y ~ dbinom(n, p),
logit(p) <- alpha + bP*P + bA*A ...
Apologetic asked 3/11, 2017 at 21:4
2
Say I want to model a random effect at two levels, i.e. I have two levels of nesting: individuals within a parent group and parent groups within a grandparent group. I know how to write a basic mod...
0
After waiting a week for three MC chains to run, the object was not
saved, giving the error "Error: is.atomic(x) is not TRUE". I have run
this code or variants thereof many times, so it is probably...
1
Solved
I hope to use MC-Stan on Spark, but it seems there is no related page searched by Google.
I wonder if this approach is even possible on Spark, therefore I would appreciate if someone let me know.
...
Zitella asked 8/4, 2016 at 11:30
3
I am very new statistical analysis world and have taken a recent interest in the BUGS/JAGS/STAN modelling language. Something which really surprises me is that I haven't seen any examples of new fu...
2
Solved
I am using RStan to sample from a large number of Gaussian Processes (GPs), i.e., using the function stan(). For every GP that I fit, another DLL gets loaded, as can be seen by running the R comman...
0
Recently stan has added the integrate_ode method. Unfortunately the only documentation I can find is the stan reference manual (p.191ff). I have a model that would require some driving signal. As I...
5
Solved
Stan is a new Bayesian analysis software by Gelman et al.
RStan is, I am guessing, a way to call Stan from within R.
Will Stan / RStan run on a supercomputer with a Linux operating system, and if...
1
I am using maximum-likelihood optimization in Stan, but unfortunately the optimizing() function doesn't report standard errors:
> MLb4c <- optimizing(get_stanmodel(fitb4c), data = win.data, ...
4
Solved
I would like to run a robust logistic regression (robit) in Stan. The model is suggested in Gelman & Hill's "Data Analysis Using Regression and Multilevel Methods" (2006, pp. 124), but I'm not ...
Earldom asked 19/10, 2014 at 5:8
2
Solved
when starting a standard example from the stan webpage like the following:
schools_code <- '
data {
int<lower=0> J; // number of schools
real y[J]; // estimated treatment effects
rea...
1
© 2022 - 2024 — McMap. All rights reserved.