lpm function

calculate a lower partial moment for a time series