Description Usage Arguments Value Author(s) Examples
Regression to the TSFR data, calculate factor return, residuals, and R squrare, etc.
1 2 3 4 5 6 |
TSFR |
a TSFR object. |
regType |
the regress type,the default type is "glm". |
glm_wgt |
glm's weight data, default value is sqrt of floating market value. |
sectorAttr |
sector attribute. |
secRtnOut |
whether output sector's return,default value is |
TS |
a TS object. |
dure |
see example in |
return a list, contains dataframes of TSFR,frtn, residual and Rsquare.
Ruifei.yin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | RebDates <- getRebDates(as.Date('2014-01-31'),as.Date('2016-09-30'))
TS <- getTS(RebDates,indexID = 'EI000985')
FactorLists <- buildFactorLists(
buildFactorList(factorFun="gf.SIZE"),
buildFactorList(factorFun="gf.GROWTH"),
buildFactorList(factorFun="gf.TRADING"),
buildFactorList(factorFun="gf.EARNINGYIELD"),
buildFactorList(factorFun="gf.VALUE"),
buildFactorList(factorFun="gf.OTHER"))
reg_results <- reg.TS(TS)
reg_results <- reg.TS(TS,FactorLists)
----------------------------------------------------------
TSF <- getMultiFactor(TS,FactorLists)
TSFR <- getTSR(TSF)
reg_results <- reg.TSFR(TSFR)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.