broken_stick function

Perform broken-stick regressions

Perform broken-stick regressions

broken_stick(dt, n)

Returns

a data.table object