I'm going to yell at my best friend.
Why would you yell at your best friend?
He was quite rude to me and I didn't appreciate it.
It sounds upsetting that your friend yelled at you. Yelling back at him won't solve the issues between you. You should be respectful and ask him why he did that and if somethings bothering him.
I'm doing this because I deserve more respect from him and so I am going to yell at him as much as I want to until he learns his lesson.
Respect is something that you have and don't want to mess up on account of his rudeness. Just be yourself and don't retaliate out of revenge, it will just make you look like the weaker person.