Situation: Two birds (male and female) protect their eggs in nest against an intruder. Each bird can use either attack or threat for protection, and be either present or absent. There is a pattern emerging from data that behaviour may be complementary - male attacks while female use threat display and vice versa.
My question is: How to statistically prove such cooperation? Or can anybody know some behavioural study which deals with similar analysis? Vast majority of sequential analyses I found are focused on DNA.
Here I provide some dummy data, but my original dataset is composed from dozens of pairs which were recorded exactly 10 minutes while defending their nest. Behavioural sequence of every bird is therefore 600 states long (each second has state). These shorter data should contain pattern similar to whole dataset.
male_seq <- rep(c("absent","present","attack","threat","present","attack",
"threat","present","attack","absent"),
times = c(3,4,8,2,6,3,2,6,2,1))
female_seq <- rep(c("absent","present","threat","present","threat","present",
"threat","attack","present","threat","attack","present",
"attack","threat","absent"),
times = c(2,6,2,1,2,1,1,3,5,3,1,3,3,2,2))