calc_win: Automatically calculate rolling window
Description
The calculated value is used to determine the rolling window for rolling
regressions.
Usage
calc_win(dt, width, by, msg)
Arguments
- dt
data.frame object.
- width
numeric.
- by
string.
- msg
string. Attach function name for message (usually auto_rate)