^^I agree with Lisa's post, and I am posting in hope of helping you and your pup.
I believe you and your pup will be much happier with positive reinforcement training. It's so much easier and fun too. You are the leader, but you encourage your dog to want to do the right thing to please you and reap the rewards.
My older boy is the first dog I have raised from a pup. He is very affectionate and playful, but he is also very headstrong (my father thinks he takes after me

). We could see it in his eyes when he was a pup, and that is why we named him Max and we call him the Boss Man sometimes.
Max is a very good boy, but he can still test my patience. It does no good to try to challenge him or to try to dominate him in any way. If he behaves improperly, I ignore him, remove my attention. Within seconds, he stops the behavior and sits nicely at my feet. Or I make light of his behavior and say calmly, "uh uh uh," or "Oh Max." Dogs are like kids in this regard: if they don't get attention for the negative, they will give up.
Our biggest challenge is the washing machine. It went off balance once and I ran to it and acted excited, so he thinks it is his job to bark furiously at it whenever it runs now (I inadvertently created the problem). On days he can't leave it alone, I calmly put him in my bedroom and he is removed from all the action of the living area. He is slowly improving because he doesn't want to go to solitary confinement.
Although he is almost 3 years old, I still praise him profusely like a puppy for all good behavior. These little ones love praise and attention, so be sure to reward good behavior, no matter how mundane.
Keys to good behavior and training include a daily schedule and lots of exercise. A schedule, a routine of doing things like walks and meals at about the same time every day, is calming and reassuring to dogs. Include lots of exercise and mental and physical stimulation (walks, trick training, obedience training). Make it fun for both of you. A tired dog is a well-behaved dog. Maintain an even keel yourself. Yorkies are very sensitive to their humans' feelings. If you are reactive or anxious and animated, your dog is going to mirror you.
I hope some of this helps.