I am new to using rJags. I have a jags model in R (version 4.3.0 (2023-04-21 ucrt)) using rjags (rjags_4-14).
I am trying to add a random intercept of "creek" (Clean in the data below) to my model. When using the code below, I get the error:
Error…
I have a jags model in R (version 4.3.0 (2023-04-21 ucrt)) using rjags (rjags_4-14).
The model runs without error for one dataset (named below: "works"). With a different dataset, which is the "works" dataset with additional observations (named…
I am conducting a network metanalysis using both Bayesian (using JAGS run throug R with the package R2JAGS) and frequentist model and, as a form of heterogeneity, I would like to calculate I2.
However, after computation, I have complete different…
In a fixed power prior model, the model is set up as:
Suppose that the event follows a Bernoulli distribution with probability p_i, what I want is to raise the Bernoulli likelihood to the power of w in jags:
mod1<-function(){
for(i in 1 : N) {
…
Does the "jags" function of R2jags give estimated states output when estimating a state space model?
Or is it to be derived manually using estimated mean/medians of parameter values.
I am using R2jags to estimate latent factor using both binary and continuous variables. I was wondering wether jags command from R2jags can handle both binary and continuous variables at the same time. I tried to find articles explain the types of…
I am fairly new to JAGS and I am using the jags() function from the package R2jags to run some occupancy models. However, the output from jags() in terms of effective sample size is different from what I get from using effectiveSize() from the coda…
I need to test a model in an old version of JAGS and R2jags. I have JAGS 4.3.0 installed on my computer and get an error when trying to load in R2jags 0.6.1. I am able to load R2jags 0.6.1 just fine when I have JAGS 4.3.1 installed. Perhaps the…
I was trying to develop a model to run a network metanalysis with jags and tried to use a previous code I've already used with WinBUGS (and worked properly).
However, when I try to use it with JAGS it gives me a coding error, but it still works…
I am working with race-stratified population estimates and I want to integrate race-stratified populations from three different data sources (census, PEP, and ACS). I developed a model to use information from all these three sources and estimate the…
I'm trying to make leave-one-out cross-validation using R2jags.
I do it easily when I use R2WinBUGS instead with the same codes, but jags() give me this error :
Compiling model graph
Resolving undeclared variables
Allocating nodes
Deleting…
when I run my jags model, I got this error message :
module glm loaded
Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, :
Error parsing model file:
syntax error on line 5 near "="
And here is my…
I'm trying to integrate multiple types of abundance data in an model using jags in r. I'm struggeling with fitting a binomial N-mixture model with count as well as abundance-class using interval censoring.
My data set 1 includes count data…