IMPROVING INFERENCES IN POPULATION STUDIES OF RARE SPECIES THAT ARE DETECTED IMPERFECTLY