powered by
weights
trdwma(y, weights, trim = FALSE)
FALSE
NA
y
filter
trdbilson
trdbinary
trdhp
trdes
trdsma
capser
data(StockIndex) y <- StockIndex[, "SP500"] wma <- trdwma(y, weights = c(0.4, 0.3, 0.2, 0.1)) head(wma, 30)
Run the code above in your browser using DataLab