Learn R Programming

respR (version 2.3.3)

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)

Value

a numeric

Arguments

dt

data.frame object.

width

numeric.

by

string.

msg

string. Attach function name for message (usually auto_rate)