Hi, Can anybody helps me to figure out how ?glmer? or ?lmer? in R can be used to estimate the random effects in mixed model so that all random effects are independent and have the same variance, i.e., the variance covariance matrix will have same value for diagonal element and zero for covariance. With Kind Regards, Shadeque
Using glmer in R
3 messages · Muhammad Mullah, David Duffy
On Sun, 1 Jul 2012, Muhammad Mullah wrote:
Can anybody helps me to figure out how ?glmer? or ?lmer? in R can be used to estimate the random effects in mixed model so that all random effects are independent and have the same variance, i.e., the variance covariance matrix will have same value for diagonal element and zero for covariance.
Usually the question is how to make them heterogenous ;) Have you read the vignettes vignette(package="lme4") the draft book chapters at http://lme4.r-forge.r-project.org/ lecture notes at http://lme4.r-forge.r-project.org/slides/ wiki at http://glmm.wikidot.com/
2 days later
Dear Duffy, As per your suggestion I went through the following but could not find any clue or work out example to figure out my problem; fitting a mixed model using ?glmer? or ?mler? so that all the random effects are iid with common variance parameter i.e., the variance covariance matrix will have the common value for diagonal element and zero for the off diagonal elements. Can you please help me in this regard! ------------------------------------- Have you read the vignettes vignette(package="lme4") the draft book chapters at http://lme4.r-forge.r-project.org/ lecture notes at http://lme4.r-forge.r-project.org/slides/ wiki at http://glmm.wikidot.com/ ------------------------------------------ With Regards, Shadeque PhD student Dept. of Epidemiology and Biostatistics McGill University
From: David Duffy [David.Duffy at qimr.edu.au]
Sent: Sunday, July 01, 2012 6:49 PM
To: Muhammad Mullah
Cc: r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] Using glmer in R
Sent: Sunday, July 01, 2012 6:49 PM
To: Muhammad Mullah
Cc: r-sig-mixed-models at r-project.org
Subject: Re: [R-sig-ME] Using glmer in R
On Sun, 1 Jul 2012, Muhammad Mullah wrote: > Can anybody helps me to figure out how ?glmer? or ?lmer? in R can be > used to estimate the random effects in mixed model so that all random > effects are independent and have the same variance, i.e., the variance > covariance matrix will have same value for diagonal element and zero for > covariance. Usually the question is how to make them heterogenous ;) Have you read the vignettes vignette(package="lme4") the draft book chapters at http://lme4.r-forge.r-project.org/ lecture notes at http://lme4.r-forge.r-project.org/slides/ wiki at http://glmm.wikidot.com/