The DIF function computes the differences between data values and one or more lagged (shifted) values for time series data.