My son and I were on a ride when a dog charged out at him. He stood his ground....and then took 6 stitches in the leg. This particular breed is known to be very territorial, and it simply charged at my son, took a quick bite....and ran quickly back to its yard. I don't think stand your ground is good advice.
Yelling loudly and throwing something is probably the way to go.