[R-sig-ME] predictions to newdata by LMM through lmer (Ben Bolker)

Tetsuya Michinaka zhangyf at affrc.go.jp
Thu Aug 15 05:20:19 CEST 2013


Dear Ben Bolker,

I registered inR-Forge, but I still do not know where to download the development version of the package lme4.
When I tried "install.packages("lme4", repos=c("http://lme4.r-forge.r-project.org/repos", getOptions("repos")["CRAN"]))",
the following message is shown:

Installing package into ‘C:/Users/.../3.0’
(as ‘lib’ is unspecified)
Error in install.packages("lme4", repos = c("http://lme4.r-forge.r-project.org/repos",  :
   could not find function "getOptions"

When I installed "install_github("lme4",user="lme4")", I also failed.
Could you please give me some detailed advice?
Thanks again.

Tetsuya



(2013/08/14 19:00), r-sig-mixed-models-request at r-project.org wrote:
> Send R-sig-mixed-models mailing list submissions to
> 	r-sig-mixed-models at r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> or, via email, send a message with subject or body 'help' to
> 	r-sig-mixed-models-request at r-project.org
>
> You can reach the person managing the list at
> 	r-sig-mixed-models-owner at r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of R-sig-mixed-models digest..."
>
>
> Today's Topics:
>
>     1. predictions to newdata by LMM through lmer (Tetsuya Michinaka)
>     2. Re: predictions to newdata by LMM through lmer (Ben Bolker)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Aug 2013 11:31:17 +0900
> From: Tetsuya Michinaka <zhangyf at affrc.go.jp>
> To: r-sig-mixed-models at r-project.org
> Subject: [R-sig-ME] predictions to newdata by LMM through lmer
> Message-ID: <520AEBF5.1000501 at affrc.go.jp>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> I am fitting a linear mixed model by lme4.
> It is like this:
> m1<-lmer(TF~ POP + AG*ELC + (1+AREA| Province) + (1| AREA)+ (1|
> DIST),DATA, REML=TRUE).
> I wonder if I can predict TF values by a new dataset, considering fixed
> and random effects.
> Would you please give me some advice?
> Thanks a lot really.
> Tetsuya Michinaka
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Aug 2013 06:13:00 +0000 (UTC)
> From: Ben Bolker <bbolker at gmail.com>
> To: r-sig-mixed-models at r-project.org
> Subject: Re: [R-sig-ME] predictions to newdata by LMM through lmer
> Message-ID: <loom.20130814T081138-446 at post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
>
> Tetsuya Michinaka <zhangyf at ...> writes:
>
>> Hi,
>>
>> I am fitting a linear mixed model by lme4.
>> It is like this:
>> m1<-lmer(TF~ POP + AG*ELC + (1+AREA| Province) + (1| AREA)+ (1|
>> DIST),DATA, REML=TRUE).
>> I wonder if I can predict TF values by a new dataset, considering fixed
>> and random effects.
>> Would you please give me some advice?
>> Thanks a lot really.
>> Tetsuya Michinaka
>>
>>
>    You could try installing the development version of the package,
> e.g. from R-forge (e.g. see
> https://github.com/lme4/lme4/blob/master/README.md ) and take a look
> at ?predict.merMod ...
>
>
>
> ------------------------------
>
> _______________________________________________
> R-sig-mixed-models mailing list
> R-sig-mixed-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>
>
> End of R-sig-mixed-models Digest, Vol 80, Issue 19
> **************************************************



More information about the R-sig-mixed-models mailing list