Skip to main content

Questions tagged [stan]

Stan is software for Bayesian estimation using the No-U-Turn sampling (NUTS) algorithm instead of the simpler Gibbs sampling (BUGS).

0 votes
0 answers
52 views

I am trying to infer the distribution of plausible group counts ($K$) in a population stratified by $E$ exposures and 1 outcome (all binary); so, we have $N_e = 2^E$ total exposure groups and $N_k = 2 ...
jessexknight's user avatar
0 votes
0 answers
41 views

I’m fitting a mixture model in Stan to strictly positive data. Each component distribution has a mean that can be expressed by some summation of a and b. (a and b are two “factor” parameters shared ...
brightlilac's user avatar
0 votes
0 answers
51 views

In the hierarchical prior papers, there are many papers using hierarchical prior structure, and they usually focus on the location parameter, such as: $\beta_i \sim MVN(\beta, 1)$ $\beta \sim MVN(0, ...
steakdream's user avatar
1 vote
1 answer
113 views

I try to add a fixed effect in a nonlinear binomial model with brms but I obtain weird result. The model is a kind of logistic model. The fit works fine when the effect is added as random effect but ...
MarcG's user avatar
  • 143
4 votes
1 answer
321 views

This is related to my previous questions Help using the delta method and Help using the delta method. However this time, the denominator used in the rates has uncertainty. I have two years of data (...
stats_noob's user avatar
2 votes
0 answers
83 views

I would be grateful for advice, hints, or reference on a question about predicting population level rates of in-hospital complications in older people. I have routine hospital data and a high-quality ...
astaines's user avatar
  • 411
3 votes
1 answer
110 views

I am trying to get effects marginal of two crossed random effects (using STAN or brms). I understand how to do it for a single random effect following McElreath's book and Kurtz's brms version of the ...
Christopher Rounds's user avatar
1 vote
0 answers
95 views

My datasets contains the median wages and the cumulative installed wind-capacity for 4000 counties over a period of 20 years. The wages tend to rise over the period and the capacity tends to highly ...
user442239's user avatar
1 vote
0 answers
69 views

I am working on a simple model of price as a way to better understand Bayesian statistics and MCMC. Eventually, I will want to add predictor variables to a linear model, but for now I’m just trying to ...
eschares's user avatar
1 vote
0 answers
52 views

I was reading through Chapter 11 of Data Analysis using Regression & Multilevel Models, and was confused by a slight variation of a simple hierarchical model posed in the text. Lets say I have a ...
Arvind's user avatar
  • 11
2 votes
0 answers
138 views

When is it appropriate to use the same outcome variable in two likelihoods in the same model framework? Here is a specific example: ...
Benny Borremans's user avatar
1 vote
0 answers
60 views

I asked about this question on Stan forum but no one replied so dual posting here. I'd really appreciate some insight, as I'm completely stuck. I’m trying to do hierarchical survival modeling using ...
Ville's user avatar
  • 81
1 vote
0 answers
110 views

I have some data $t_1, t_2, ..., t_n$ where $0 < t_i < T$ for all $t_i$. I assume that this has been generated by an inhomogeneous Poisson process with parameter $\lambda(t)$ defined again for $...
user1747134's user avatar
2 votes
1 answer
262 views

Closest question I could find to mine was this one, which doesn't cover it. Is it possible to specify a correlation between two parameters in a Stan model? Consider a linear regression specified by: $$...
Corned Beef Hash Map's user avatar
3 votes
1 answer
561 views

I am fairly new to Bayesian Modeling, however I am experimenting with such framework in order to produce several estimates. The part I am struggling the most with is the selection of prior ...
Marco De Virgilis's user avatar

15 30 50 per page
1
2 3 4 5
19