If a batter hits into a ground out but scores an RBI does the out count against his batting average?

no, its charged as a sacrifcie.