powered by
Calculate the OLS regression for log total return index
jubilee.eqty_ols(dtb, end.frac, lookback.channel, tol.frac = 1/6)
data.table that contains fraction and log.tri columns.
fraction
log.tri
numeric, the ending fraction of regression.
numeric, the backward-looking regression period
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.
c(a,R)
end.frac
# NOT RUN { # } # NOT RUN { dtb <- jubilee.repo(online=FALSE)@ie jubilee.eqty_ols(dtb, 1970, 50) # c(11.8671626, 0.1008371) # }
Run the code above in your browser using DataLab