Hierarchical Bayesian models specify statistical priors on parameters and hyperpriors on the parameters of the prior distributions.
Questions tagged [hierarchical-bayesian]
109 questions
0
votes
0 answers
Verifying the Bayes factor computation based on 'R2jags' and 'bridgesampling'
I am trying to compute the Jeffreys-Zellner-Siow (JZS) Bayes factor for one-way ANOVA via bridge sampling. However, the result is far less reliable than the value computed by the anovaBF function in the 'BayesFactor' R package. The model…

Dexter SherloConan
- 89
- 4
0
votes
1 answer
BTYD: Prior model tweaking
I am recently encountering a challenge with BTYD, specifically with Pareto-NBD model. See, from the papers that I read from Faders, there are few assumptions using this model, and the first and foremost is:
i) Customers go through two stages in…

Paul Kang
- 15
- 2
0
votes
1 answer
When trying to use INLA on a LGM I get "Error: length(covariate[[r]]) == NPredictor is not TRUE"
For a project I'm doing a need to create a LGM from points on a [0, 1]^2 grid. I'd really appreciate any help you all can give me
> set.seed(2000)
> # Define number of points and locations
> par(mfrow=c(1,1))#Ensure 1 graph on screen at a time
> n…

user21343597
- 1
- 1
0
votes
0 answers
mcmc model run error - tensorflow probability
I am creating a utility model to evaluate a set of items. I have created the model in tesorflow probabilty, I am able to sample the pooled_model() successfully and even run the utilities function successfully manually with the samples. The shape of…

user16870782
- 1
- 1
0
votes
0 answers
What's causing rjags "Node inconsistent with parents" error
I'm trying to run a bird occupancy model using rjags and I'm getting an error saying: Error in node ytb[1,2,9,1:5,1] Node inconsistent with parents. The vector that the error references is a vector of 5 0s because it represents a survey where no…

dankdweb
- 1
0
votes
0 answers
What is causing a syntax error on last line of JAGS model?
I have created a model to investigate the effects of covariates on occupancy of different bird species at different points across different properties. However, when I try to run the model using rjags, I get this error: Error parsing model file:…

dankdweb
- 1
0
votes
0 answers
How to build a simple hierarchical model with different samples in Stan/rstan?
I'm a newbie in stan and I'm trying to figure out how to build a Bayesian hierarchical model.
First of all I create five different normally distributed samples with random mean and standard deviation.
library(rstan)
set.seed(10)
mus =…

AlexLee
- 429
- 4
- 11
0
votes
1 answer
Supply different families of priors as a parameter in the bugs/stan model
This is the classic eight school example in Bayesian data analysis by Andrew Gelman. Please see the stan file and R code below. I use a cauchy prior with paratmer A for the hyperparamter tau in the stan file. I am trying to supply the R function…

Statisfun
- 133
- 4
0
votes
0 answers
R2WinBUGS error "index out of range" in space-time model
I am very new to WinBUGS so I appreciate anyone's help troubleshooting. I used the R2WinBUGS package to run my model. I had originally posted with an issue about a pop-up in WinBUGS that said "incompatible copy". I resolved this issue by shortening…

Ryan Snead
- 13
- 3
0
votes
0 answers
JAGS Hierarchical linear model - Extracting group mean for each parameter
I am creating a Bayesian linear regression model to predict points scored by players in a game using R and JAGS. I have 5 predictors, and the basic linear regression model is of the form:
points = beta0 + (beta1 * x1) + (beta2 * x2) + (beta3 * x3) +…

JimJam
- 1
0
votes
0 answers
System requirements for JAGS, rjags and STAN
Due to a job change, I have to decide what kind of computer I need for my research work, which includes hierarchical Bayesian modeling. Does anyone have general recommendations on minimum system requirements in terms of working memory, CPU and so…

jags_user
- 1
- 1
0
votes
0 answers
Creating a hierarchical model in Pymc3
I have a hierarchy of how a given variable is to be split into multiple sub-categories
Lets' assume d = 1000, there are 3 categories where this 'd' is to be split with probability as below:
categories = ['c1': 0.3, 'c2':0.3, 'c3':0.4]
Each of the…

user19569348
- 3
- 3
0
votes
0 answers
bayesm package creating a matrix and including none option
I have extracted my CBC data from Sawtooth and want to run a hierarchical bayes estimatation using the package bayesm. I have seen the vignette , however, I do not know how to get the matrix createx comment (should I use na and Xa or rather nd and…

Joshua
- 15
- 6
0
votes
0 answers
How to set correlational beta prior distribution using jags?
When I'm using jags to do Bayesian modeling, I'm trying to set correlational prior distribution for two parameters that should only take values between 0 and 1. I want to use correlational priors due to theoretical reason, because I expect these two…

Ashley
- 67
- 1
- 7
0
votes
1 answer
How to predict time series with limited data
I have a dataset with four columns: date, category, product, rate(%). I would like to be able to forecast the rate for every product in my data. The major issue I'm having is that because products constantly come in an out of production, certain…

import_numpy
- 27
- 4