Skip to content
Prev 844 / 20628 Next

prediction intervals from a mixed-effects models?

Hi,
I think Doug made a comment a few weeks ago about why there was as
yet not a predict method for lme4, to the effect that there are so
many different things that can be extracted from the model. And
I have searched before for code for prediction intervals with a 
similar outcome. I think the mcmcsamp function offers a really
nice way to get prediction intervals, since effectively any function
of the parameters can be applied to the mcmcsample and get a valid
prediction (credible set) interval (am I remembering my Bayesian 
statistics correctly, it is the joint distribution right?) 

I have been toying with writing a general predict method for
lmer objects, given that Doug has elaborated quite a bit on the
underlying mer structures and algorithms. I suspect that 
this won't be as easy for glmm's, or is it again just a
matter of twiddling with the joint posterior distribution 
of the parameters? 

Doug would you accept a predict method for lme4, or should
that go into a separate package. I am also thinking
of tackling splines, but that won't be next week.

Nicholas
Message-ID: <1208192238.20315.1247805099@webmail.messagingengine.com>
In-Reply-To: <mailman.3.1208167202.2225.r-sig-mixed-models@r-project.org>