World Ranking Scoring

How are Vex IQ World Ranking Scores determined? I know it’s based on robot skills (combined driving and programming). But if you attend multiple events, are your scores averaged? combined? Only your highest counts? Also, How does going to robot SKILLZ only events improve your world ranking? Thanks!