A practical extension of the generalized estimating equation approach for longitudinal data