inst/models/model-110a.bugs.R

# model−110a.bug−model for mean of loglikelihoods for getting a facial comparison
# correct
data{
  n <- length(response)
  n.comparisons <- max(comparison)
  n.subjects <- max(subject)
  n.departments <- max(department)
}
model{
  for (i in 1:n) {
    response[i] ~ dbern(pr[i])
    pr[i] <- ilogit(b0)
  }
  b0 ~ dnorm(0, 0.001)
}

Try the jaggR package in your browser

Any scripts or data that you put into this service are public.

jaggR documentation built on July 19, 2019, 5:05 p.m.