I have a set of dyad data. So, each person in the dyad was free to switch as many times as they liked between 2 tasks in 5 minutes (300 seconds), and I recorded the time at which each person switched between the tasks.
Participant A Participant B Time Task Time Task 0 1 0 0 21.43 0 23.08 1 42.86 1 46.16 0 64.29 0 69.24 1 85.72 1 92.32 0 107.15 0 115.4 1 128.58 1 138.48 0 150.01 0 161.56 1 171.44 1 184.64 0 192.87 0 207.72 1 214.3 1 230.8 1 235.73 0 253.88 0 257.16 1 276.96 0 278.59 0
I hope to transform the data by creating a common timeline for the two individuals, more specifically, having sixty 5-second intervals (making up 300 seconds), and being able to show which task each person is doing at each 5-second interval.
This is an example of how the result should look like (in this example it's in 10-second intervals).
Time PartA PptB 0 1 0 10 1 0 20 1 0 30 0 1 40 0 1 50 1 0 60 1 0 70 0 1 80 0 1 90 1 1 100 1 0 110 0 0 120 0 1 130 1 1 140 1 0 150 1 0 160 0 0 170 0 1 180 1 1 190 1 0 200 0 0 210 0 1 220 1 1 230 1 1 240 0 1 250 0 1 260 1 0 270 1 0 280 0 0 290 0 0
How can I do this?
Task
forA
andB
in the first 5 seconds? – Randy Lai