shiftSC: Shift values in a single-case data file

Description Usage Arguments Value See Also Examples

View source: R/shiftSC.R

Description

Shifting the values might be helpful in cases where the measurement time is given as a time variable (see example below).

Usage

1
shiftSC(data, value, var)

Arguments

data

A single-case data frame. See scdf to learn about this format.

value

Number by which to shift the values

var

Character string with the name of the target variable. Defaults to the measurement time variable.

Value

A scdf with shifted data

See Also

Other data manipulation functions: fillmissingSC(), longSCDF(), outlierSC(), rankSC(), scaleSC(), smoothSC(), truncateSC()

Examples

1
2
3
### Shift the measurement time for a better estimation of the intercept
ex <- shiftSC(example_A24, value = -1996)
plm(ex)

scan documentation built on Feb. 12, 2021, 3:01 a.m.