When weighted is T, the regression is weighted by
where the numerator is the number of pairs of points in a given lag.