ecd.ts_lag_stats: Lag statistics on timeseries of log returns
Description
Lag statistics on log returns are added to the xts attributes. It takes
a vector of lags and calculates the mean, stdev, var, skewness, and kurtosis
for cumulative log returns of each lag. The data is stored as a list of vectors
under lagstats attribute. Be aware this function uses multicore lapply.