Shift values in a single-case data file
Shifting the values might be helpful in cases where the measurement time is given as a time variable (see example below).
shift(data, value, var) shiftSC(...)
data |
A single-case data frame. See |
value |
Number by which to shift the values |
var |
Character string with the name of the target variable. Defaults to the measurement time variable. |
... |
Further arguments passed to the function. |
A scdf with shifted data
Other data manipulation functions:
fill_missing(),
longSCDF(),
outlier(),
ranks(),
smooth_cases(),
standardize(),
truncate_phase()
### Shift the measurement time for a better estimation of the intercept ex <- shift(example_A24, value = -1996) plm(ex)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.