Linear fit with subset