Two-stage approaches to the analysis of occupancy data I: the homogeneous case (analysis of occupancy data)