I understand. I used to shout at my DD 4yo a lot. Since her father walked out, I have struggled with her at times, but am trying to give her a secure loving home and I am trying sooooo hard not to shout at her but it isnt easy.
What made me realise that it was wrong, was comparing it to how you treat other people..... If a friend or family member does something you dont like, or moans a lot, do you shout at them? Do you shout at colleagues at work?
I realised that it wasnt acceptable to shout at DD as I never shouted at anybody else.....
But it is so hard. and like tonight, when she's screaming because she wants to walk up the road and not get a lift with nana and she hates nana and she lies down in the middle of the road....... she got shouted at!! out of fear more than anything as I wanted to get her off the road.
I try and ignore behaviour, or try distraction. DD was tired and crabby tonight. As soon as we got home and she had a drink, her head stopped spinning round and she became normal again......
All I can suggest is walking away rather than shouting, unless she is in danger... distraction if out shopping or something... bribery/blackmail/threats!
I give her a threat of something - no tv, no sweets, no NDS, whatever is the favourite thing, then count to 5. If the behaviour continues, then you have to see the threat through
good luck