Dear Ron,
just a short, generic answer that might help you. I am aware of two
solutions:
1) Use the code provided here http://glmm.wikidot.com/faq in section
"Predictions and/or confidence (or prediction) intervals on predictions"
2) Use the development version of lme4 (https://github.com/lme4/lme4/)
which provides a predict method, see
https://github.com/lme4/lme4/blob/master/misc/notes/release_notes.md#new-features

Best regards
Marko


2013/7/11 Ron Stone <ronstone1980@gmail.com>

> Dear all,
>
> My question is how to get predictions and confidence intervals when using
> lmer?
>
> I have spend the whole previous day working with this whithout any success.
> I have tried library(ggplot2), further I tried ezPredict in the "ez"
> package, but I find it difficult to adapt my model to the provided scripts.
> I assume that I'm on the right track, but needs help to write the right
> script to achive predictions and confidence interval for my model.
>
> I have the following model:
>
> Speed = fixed effect (continous)
> BodyMass = fixed effect (continous)
> ID = random effect
> Species = random effect.
>
> lmerfit1<-(Speed~BodyMass+(1|ID)+(1|Species))
>
> >From this I would like to make a regression curve with confidence
> intervals, showing the effect of BodyMass on Speed.
>
> Hope I could get some advice.
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>



-- 
*www.komm.uni-hohenheim.de/bachl*

	[[alternative HTML version deleted]]

