smooth_m3a3: Apply median of 3 and average of 3 smoothing on a time series

View source: R/utilities.R

smooth_m3a3R Documentation

Apply median of 3 and average of 3 smoothing on a time series

Description

Apply median of 3 and average of 3 smoothing on a time series

Usage

smooth_m3a3(x)

Arguments

x

A vector of numerical information to be smoothed

Value

A vector of smoothed data

Author(s)

Ernest Guevarra

Examples

x <- aggregate(cbind(`New Admissions`, Default) ~ Month + Year,
               data = monitoring, FUN = sum)
smooth_m3a3(x = x$Default)


rapidsurveys/squeacr documentation built on April 26, 2024, 1:08 a.m.