python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Jags: Attempt to redefine node error, mixed effect regression
I want to perform a mixed effect regression in rjags, with a random slope and intercept. I define the following toy dataset:
library(ggplot2)
library(data.table)
global_slope <- 1
global_int <-...
denis
Votes: 0
Answers: 1
Attempt to redefine node p[1,1] When adding covariates to beta-binomial mixture model
I keep getting the above error when I try adding detection covariates on a beta-binomial N-mixture model in rags. According to Royle(2004). A binomial N mixture model can be used to model abundance d...

mutinda festus
Votes: 0
Answers: 1
Fitting a NLME model in jags
Generate some data
##### Load packages
library(nlme); library(lme4)
library(dclone)
### GENERATE SOME DATA
## Example data with a weibull curve
k <- 120;
nindivs <- 30;
pwr <- 0.2...
Constantin
Votes: 0
Answers: 0