Longitudinal analysis of repeated binary data using autoregressive and random effect modelling