Description Usage Arguments Value Author(s)
Adjusts a series called e - typically a series of residuals or financial returns - for zero values, so that the logarithm can be applied on the absolute pth. exponentiated values. Next, log(abs(e)^p) is computed
1 |
e |
numeric vector, time series or |
zero.adj |
numeric value between 0 and 1 (the quantile adjustment for zero values). The default 0.1 means zeros are replaced by the 10 percent quantile of abs(e) before taking the logarithm |
p |
numeric value greater than zero. The power of the log-volatility specification |
na.replace |
the value to replace NA values with. Default: na.replace=NA |
log(abs(e)^p), a numeric, where the zeros in e have been adjusted
Genaro Sucarrat, http://www.sucarrat.net/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.