Risk factors for nursing home admissions and exits: a discrete-time hazard function approach.