What determines the rate of recovery? - if a unit revives from being a casualty

Weapon attack, lethality, stamina, health points, ancillaries, general traits...?

I think one of my units recovered to 100% after several of their soldiers were burned to ashes by fire arrows... O_o