barber_smooth: Kernel smooth as average of X neighbors

View source: R/barber_smooth.R

barber_smoothR Documentation

Kernel smooth as average of X neighbors

Description

Substitute in linear extension of first neighbor using average diff of nearest 3 for first and last date

Usage

barber_smooth(vec, n_neighbors, times)

Arguments

vec

Vector of positive values

n_neighbors

Integer of number of nieghbors to smooth with

times

Integer number of times to run the smoother


ihmeuw/ihme.covid documentation built on Nov. 2, 2022, 2:25 a.m.