Gender differences and dual diagnosis: a retrospective study