[R-sig-ME] lme4 question
Ahreum Maeng
amaengwork at gmail.com
Wed Jul 19 14:21:46 CEST 2017
Hello,
I am trying to run the following model:
DV ~ type*IV+((1|id)+(0+type|id)+(1|A_id)+(1|B_id))
As you see on the following sample data structure, "type" is repeated
measure where 0=A, 1=B. There are 4 ids within each type A and B.
Thus, I coded "B_id" as "0" when the type is 1 (A) and coded "A_id" as "0"
when type is 0 (B).
Would it be a right way to deal with this repeated measure issue?
id type A_id B_id IV DV
1 1 0 1 1 3.14
2 1 0 2 2 4.67
3 1 0 3 3 4.23
4 1 0 4 1 7.00
1 0 1 0 2 3.00
2 0 2 0 3 4.77
3 0 3 0 1 4.25
4 0 4 0 2 7.12
Thank you so much for your help in advance!
-------------- next part --------------
Hello,
I am trying to run the following model:
DV ~ type*IV+((1|id)+(0+type|id)+(1|A_id)+(1|B_id))
As you see on the following sample data structure, "type" is repeated measure where 0=A, 1=B. There are 4 ids within each type A and B.
Thus, I coded "B_id" as "0" when the type is 1 (A) and coded "A_id" as "0" when type is 0 (B).
Would it be a right way to deal with this repeated measure issue?
?id type A_id B_id IV DV
1 1 0 1 1 3.14
2 1 0 2 2 4.67
3 1 0 3 3 4.23
4 1 0 4 1 7.00 ?
?1 0 1 0 2 3.00
2 0 2 0 3 4.77
3 0 3 0 1 4.25
4 0 4 0 2 7.12 ??
T?hank you so much for your help in advance!
More information about the R-sig-mixed-models
mailing list