Skip to contents

Calculate the linear trend of a time series

Usage

linear_trend(y)

Arguments

y

numeric vector of values

Value

numeric scalar denoting the most frequent value

Author

Trent Henderson

Examples

y <- arima.sim(model = list(ar = 0.8), n = 1000)
outs <- linear_trend(y)