Description Usage Arguments Value Author(s) Examples
View source: R/jubilee-eqty-ols-method.R
Calculate the OLS regression for log total return index
1 | jubilee.eqty_ols(dtb, end.frac, lookback.channel, tol.frac = 1/6)
|
dtb |
data.table that contains |
end.frac |
numeric, the ending fraction of regression. |
lookback.channel |
numeric, the backward-looking regression period |
tol.frac |
numeric, tolerance of missing data in the beginning, expressed as fraction. Default is 1/6, that is, two months. |
two-element array c(a,R)
if end.frac
is length-one;
data.table with end.frac
as fraction column if end.frac
is an array.
Stephen H. Lihn
1 2 3 4 5 | ## Not run:
dtb <- jubilee.repo(online=FALSE)@ie
jubilee.eqty_ols(dtb, 1970, 50) # c(11.8671626, 0.1008371)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.