Estimating prognosis for nursing home residents with advanced dementia.