Skip to content
Prev 8561 / 20628 Next

Calculating CI's for multiple fixed effects

Gus Jespersen <jesper <at> u.washington.edu> writes:
I think you just need to take the output of mcmcsamp, manipulate,
and *then* use HPDinterval.

  m <- mcmcsamp(...)
  library(coda)
  m2 <- as.mcmc(as.matrix(m))

should give you an mcmc object -- you can then manipulate (mostly)
as though it were a matrix (e.g. subtract each Control column from
the corresponding Treatment column), then use the HPDinterval
built into coda to find the 95% CI on the differences ...