Factors associated with antipsychotic dosing in psychiatric inpatients: a prospective study