Dividing 8 levels within subject into two variables

22 views
Skip to first unread message

or duek

unread,
Apr 26, 2013, 2:44:21 AM4/26/13
to ez...@googlegroups.com
Hi,
I have a task which contains 8 blocks. The first four blocks are one condition and the second four blocks are another condition.
How can I divide this within variables into two different ones (block, parts?)
Thank you very much,
Or D.

Thom

unread,
Apr 26, 2013, 8:37:32 AM4/26/13
to ez...@googlegroups.com
If I have understood correctly you just need to create two factors that code for this.

e.g., 

block <- gl(4,1,40)

condition <- gl(2,40)


might do it for 40 trials ...

Reply all
Reply to author
Forward
0 new messages