Anecdotally, there's also variation between engineering disciplines.
In my undergrad, EE's were overwhelmingly male followed by MechE.
ChemE was 50/50 (and as I recall ChemE was one of the more selective at the time, owing to the notion that starting salaries were the highest among all the engineering disciplines -- this was during the era of oil & gas dominance).