Skip to content

[Lme4-authors] LME4 and Lmer model

1 message · Zhanyou Xu

#
Dear Sir/Madam,

We are running lmer to calculate Best Linear Unbiased prediction (BLUP),
and we have 10 groups of data, each group has groupID and 42 individual.
We want to get BLUP values for each individual material within each
group. In SAS, there is a BY statement and we can get BLUP value for
each individuals within a group. We are wondering whether there is a
similar R code that we can calculate the BLUPs for each group similar
like BY statement in SAS? Below is the R code we pare testing for your
reference. Thank you very much in advance!

Zhanyou



---------- Forwarded message ----------
From: Ben Bolker <bbolker at gmail.com>
Date: Mon, Sep 29, 2014 at 2:05 PM
Subject: Re: [Lme4-authors] LME4 and Lmer model
To: zhanyou.xu at syngenta.com,
"lme4-authors at lists.r-forge.r-project.org"
<lme4-authors at lists.r-forge.r-project.org>,
marcia.almeida_de_macedo at syngenta.com, zxuiowa at iastate.edu,
lme4-authors at r-forge.wu-wien.ac.at
On 14-09-29 11:30 AM, zhanyou.xu at syngenta.com wrote:
Take a look at ranef() and coef().  If you have further questions,
could you please send them to r-sig-mixed-models at r-project.org ?

  I can believe that "%in%" works as a nesting indicator, but it is more
typical/I am more familiar with REPNO:HOSEID ...  (I'm also curious why
you need to ignore the greater-than-1-level check ...)

  thanks
   Ben Bolker