1 Jul 2008 02:14
Re: Coda not providing summary on mcmc object
Ben Bolker <bolker <at> ufl.edu>
2008-07-01 00:14:27 GMT
2008-07-01 00:14:27 GMT
smith_cc <smith_cc <at> yahoo.com> writes:
>
>
> The object is a mcmc sample from lmer. I am using R v2.7.1. Please let me
> know what additional information I can provide, hopefully I am just making a
> simple mistake. Thanks in advance!
>
> > data(ratdrink, package = 'faraway')
> > rd.er <- lmer(wt ~ weeks*treat + (1 | subject), data = ratdrink)
> > rd.mc <- mcmcsamp(rd.er, 10000)
> > library(coda)
> Loading required package: lattice
> > summary(rd.mc)
> Length Class Mode
> 1 merMCMC S4
> > HPDinterval(rd.mc)
> Error in UseMethod("HPDinterval") :
> no applicable method for "HPDinterval"
I don't think it should necessarily have been obvious,
but help("merMCMC-class") suggests that lme4 contains
its own methods for doing HPDinterval calcs. Furthermore,
loading coda after lme4 gives the following warning
The following object(s) are masked from package:lme4 :
HPDinterval
If you really want HPDintervals from coda, it looks like
(Continue reading)
)
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
______________________________________________
R-help <at> r-project.org mailing list
RSS Feed