Analysis of sex sequences by means of generalized linear mixed models