Exploring the relationships between patients' characteristics and costs of community-based mental health care