I'm not sure if she's old enough for this, but her language sounds fairly good so it might work...

I tell DS I can't understand him when he's screaming/whining/yelling and ask him to ask me nicely. More often than not he stops and asks nicely,
This works for us sometimes too. I did try screaming too a few times, I did with my older 2 when they were little too. Not right in their face but screamed along with them, if it was a tantrum type "I just want what I want" type thing, and we all ended up laughing. So it did stop the screaming, and without giving in and giving them what they wanted But it would depend on how worked up they were and why. I picked my screaming moments.