Longitudinal assessment of child behaviour based on three-way binary data