Skip to content

lme4 question

2 messages · Ahreum Maeng, Thierry Onkelinx

#
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!
-------------- 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!
#
Dear Ahream,

You need to tell us more about the data set. Is this the complete data?
What variable indicates the grouping?

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2017-07-19 14:21 GMT+02:00 Ahreum Maeng <amaengwork at gmail.com>: