fixed refitting of line for subset of observations
Merge pull request #14 from sjsrey/refit

fixed refitting of line for subset of observations