[R-sig-ME] Fw: simulating a linear random intercept model with exogeneity assumption

mervat mohamed mervat_moh2006 at yahoo.com
Wed Jun 21 20:27:44 CEST 2017

   Show original message     On Monday, June 19, 2017 1:36 PM, mervat mohamed via R-sig-mixed-models <r-sig-mixed-models at r-project.org> wrote:

 Hi r-sig group
I want to know how to write the code of simulating a linear random intercept model with following assumptions using R programing:
the model:
yij=b.+b1 xij + u.j + eij,  where j refer to the group number and i refer to the observation number in the j group
model assumptions:
1- xij ~ N (3,1.5)2- u.j ~ N (0,1)3- eij ~ N (0,1)4- cov (xij , u.j)=0
5- cov (xij , eij)=0
6- cov (u.j , eij)= 0
thnx for help
    [[alternative HTML version deleted]]

R-sig-mixed-models at r-project.org mailing list

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Untitled
URL: <https://stat.ethz.ch/pipermail/r-sig-mixed-models/attachments/20170621/b68782f0/attachment.ksh>

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