i could imagine something like every enemy unit adjacent to you lowers your defense a bit.
Perhaps it is easier to code a bonus to the armor penetration. Groups could have these abilities:
3 person group:
+ 0 initiative, + 0 dodge, + 0 accuracy if the target is a single unit, + 15 % armor penetration
5 person group:
- 2 initiative, - 10 dodge, + 10 accuracy if the target is a single unit, + 20 % armor penetration
7 person group:
- 4 initiative, - 20 dodge, + 20 accuracy if the target is a single unit, + 25 % armor penetration
9 person group:
- 6 initiative, - 30 dodge, + 30 accuracy if the target is a single unit, + 30 % armor penetration