Shouting can have the same emotional consequences as physical punishment. You shouldn't expect children to behave better and learn to control their emotions if you can't do so yourself. It's possible to avoid shouting.
When you feel that you're losing control, leave the child alone for a few minutes. Everything that your child does shouldn't be taken personally. Forgive yourself, and learn the lesson from your mistakes.
A child's upbringing depends above all on their relationship with you. And if we want our children to be healthy, the best way to do it is to avoid being cruel.