An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mixed-models/attachments/20140624/d516e35f/attachment.pl>
Obtaining X beta + Zb
4 messages · Asaf Weinstein, ONKELINX, Thierry, Ben Bolker +1 more
Dear Asaf, Does fitted() gives you what you want? Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium + 32 2 525 02 51 + 32 54 43 61 85 Thierry.Onkelinx at inbo.be www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -----Oorspronkelijk bericht----- Van: r-sig-mixed-models-bounces at r-project.org [mailto:r-sig-mixed-models-bounces at r-project.org] Namens Asaf Weinstein Verzonden: dinsdag 24 juni 2014 15:13 Aan: r-sig-mixed-models Onderwerp: [R-sig-ME] Obtaining X beta + Zb Hello, I wonder if there is a direct way to obtain the (BLUP of the) linear predictor, X beta + Zb, without having to first extract the (BLUP of the) random effects (with function ranef). Thanks so much, Asaf _______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models * * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * * Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is door een geldig ondertekend document. The views expressed in this message and any annex are purely those of the writer and may not be regarded as stating an official position of INBO, as long as the message is not confirmed by a duly signed document.
Asaf Weinstein <asafw.at.wharton at ...> writes:
Hello, I wonder if there is a direct way to obtain the (BLUP of the) linear predictor, X beta + Zb, without having to first extract the (BLUP of the) random effects (with function ranef).
Isn't this what predict(model) or fitted(model) does?
I'm assuming you are referring to linear mixed models (i.e. lmer): fm <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) fitted.values(fm) Cheers, Steve
On 2014-06-24, 9:12 AM, Asaf Weinstein wrote:
Hello, I wonder if there is a direct way to obtain the (BLUP of the) linear predictor, X beta + Zb, without having to first extract the (BLUP of the) random effects (with function ranef). Thanks so much, Asaf [[alternative HTML version deleted]]
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models