powered by
expSmoothMod Add a column of the smoothed values using exponential smoothing
expSmoothMod(DF, InVar, OutVar, alpha = "guess", beta = "guess", Filter = NULL)
A DF with an extra col with a exp smoothed version of InVar
The DF we are to add a exponential smoothing column to
The column to be smoothed
The name of the new column
The alpha fed into forecast exponential smoothing. if it equals "guess" then it if found using parameterGuess
The beta fed into forecast exponential smoothing. if it equals "guess" then it if found using parameterGuess
Prefilter using the value of a Filter col
data("Example_data", package = "Covid19Wastewater") Example_data <- Example_data[Example_data$site == "Green Bay",] expSmoothMod(Example_data, "N1", "expN1")
Run the code above in your browser using DataLab