R/incidence.R
lag_diff.Rd
The function returns a vector of lagged difference values using diff with initial padding
diff
lag_diff(x, lag)
vector or matrix of numeric values. In the case of a matrix, the rows indicate the time-varying observations.
the lag value (numeric)