A longitudinal approach to modeling outcomes in a nursing home study.