8.2 Regression Trees

  • For the Hitters data, a regression tree for predicting the log salary of a baseball player based on:

    1. number of years that he has played in the major leagues

    2. number of hits that he made in the previous year