Statistics and histogram on log returns are added to the xts attributes
ecd.data_stats(
ts = "dji",
breaks = 20,
merge_tails = c(0, 0),
with.tail = FALSE,
tail.N1 = 7,
tail.N2 = 5
)
can be either a symbol of sample data, or the xts object from sample data
A length-one numeric, breaks for generating the histogram.
A length-two numeric vector. The first element is how many points in the left tail of histogram to be dropped during fitting. The second element is how many points in the right tail of histogram to be dropped during fitting.
logical, include tail statistics, mainly on asypmtotic kurtosis. Default: FALSE
.
a numeric, defining the wider range of tail statistics
a numeric, defining the smaller range of tail statistics
The xts object containing ecd added attributes
# NOT RUN {
dji <- ecd.data_stats(ecd.data("dji"))
dji <- ecd.data_stats("dji")
# }
Run the code above in your browser using DataLab