[R] sampling weights in package lme4

Ben Bolker bbolker at gmail.com
Tue Jan 24 17:48:14 CET 2012


Mohd masood <masood0805 <at> rediffmail.com> writes:

> I am trying to include sampling weights in multilevel regression
> analysis using packege lme4 using following codes
 
> print(fm1 <- lmer(DC~sex+age+smoker+alcohol+fruits+(1|setting), 
> dataset,REML = FALSE), corr = FALSE)
> print(fm2 <- lmer(DC~sex+age+smoker+alcohol+fruits+(1|setting), 
> dataset,REML = FALSE), corr = FALSE,weights=sweight)

> The problem is both the codes giving me exactly the same results.is
> this "weights" not meant for sampling weights?if not, how can i
> include sampling weights in lme4?

  Can you please re-post this on the r-sig-mixed-models <at>
r-project.org mailing
list, preferably with a reproducible example
<http://tinyurl.com/reproducible-000>  ?

  Ben Bolker



More information about the R-help mailing list