calcmodel function

Calculate results of a single segmented regression model