Analysis of binary panel data by static and dynamic logit models