Skip to contents

Compute Moving Average of Time Series

Usage

ComputeMovingAverage(ma_window_length = 52)

Arguments

ma_window_length

length of moving average window, this will depend on the time scale in the data. Defaults to 52, so that weekly data is averaged over years.

Value

A function like compute_moving_average_default to remove to compute the moving average of a time series variable.