Predicting adaptive functioning among mentally ill persons in community settings