In the editor just right click a unit, under the properties menu you can set it using the level drop down menu. If you are making a campaign you need a trigger to remember your units stats when the first map ends.
when all main objectives compleded
(dont think you need anything here for this to work)
save unit xp