Skip to content
Prev 15558 / 20628 Next

simulating a linear random intercept model with exogeneity assumption

----- Forwarded Message -----From: mervat mohamed <mervat_moh2006 at yahoo.com>To: mailman-owner at r-project.org <mailman-owner at r-project.org>Sent: Sunday, July 2, 2017, 5:39:42 AM GMT+2Subject: Fw: [R-sig-ME] Fw: simulating a linear random intercept model with exogeneity assumption
On Wednesday, June 21, 2017 8:27 PM, mervat mohamed via R-sig-mixed-models <r-sig-mixed-models at r-project.org> wrote:
? 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
mervat
??? [[alternative HTML version deleted]]

_______________________________________________
R-sig-mixed-models at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models

? _______________________________________________
R-sig-mixed-models at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models

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