✨ feat(tsl-api-reference): add class and framework API lookup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# 风险模型 / 横截面回归
|
||||
|
||||
## `TSRM_CrossSection`
|
||||
## `tsrm_CrossSection`
|
||||
|
||||
声明:class
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- tags: 拟合 截面回归 因子收益 风险模型 -->
|
||||
|
||||
### `fConstant`
|
||||
### `FConstant`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
类型:bool
|
||||
|
||||
### `fConfig`
|
||||
### `FConfig`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
类型:array
|
||||
|
||||
### `fBegT`
|
||||
### `FBegT`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
类型:date
|
||||
|
||||
### `fEndT`
|
||||
### `FEndT`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
类型:date
|
||||
|
||||
### `fCycle`
|
||||
### `FCycle`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
类型:string
|
||||
|
||||
### `fIndexid`
|
||||
### `FIndexid`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
类型:string
|
||||
|
||||
### `fIndustryName`
|
||||
### `FIndustryName`
|
||||
|
||||
声明:field
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
类型:string
|
||||
|
||||
### `csRegress()`
|
||||
### `CsRegress()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `query_Factor_Ret()`
|
||||
### `Query_Factor_Ret()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `query_Specific_Ret()`
|
||||
### `Query_Specific_Ret()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `query_Pure_Factor_Portfolio_Weight()`
|
||||
### `Query_Pure_Factor_Portfolio_Weight()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `cstTest()`
|
||||
### `CstTest()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `csrSquare()`
|
||||
### `CsrSquare()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `csvif()`
|
||||
### `Csvif()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `csrSquare_CV()`
|
||||
### `CsrSquare_CV()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
可见性:`public`
|
||||
|
||||
### `rms_Return_Decomposing()`
|
||||
### `Rms_Return_Decomposing()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -198,7 +198,7 @@ ifthen(ifnil(t := StockStyleFactor(1)),array(),t),mcell);
|
||||
|
||||
|
||||
|
||||
csr := new TSRM_CrossSection();
|
||||
csr := new tsrm_CrossSection();
|
||||
csr.FData := data;
|
||||
csr.FConstant := 1;
|
||||
csr.FIndField := array('行业');
|
||||
@@ -211,18 +211,18 @@ ifthen(ifnil(t := StockStyleFactor(1)),array(),t),mcell);
|
||||
'申万非银金融','申万计算机','申万传媒','申万通信',
|
||||
);
|
||||
csr.FStyleField := mCols(data,1)[4:mcols(data)-1];
|
||||
csr.CSRegress();
|
||||
csr.CsRegress();
|
||||
ret := array('因子收益率':csr.Query_Factor_Ret(),'特质收益率
|
||||
':csr.Query_Specific_Ret(),
|
||||
'纯因子组合权重':csr.Query_Pure_Factor_Portfolio_Weight(),
|
||||
'---评估指标---':'-----') union csr.CSTTest()
|
||||
union csr.CSRSquare() union csr.CSVIF() union
|
||||
csr.CSRSquare_CV()
|
||||
union array('截面波动率分解':csr.RMS_Return_Decomposing());
|
||||
'---评估指标---':'-----') union csr.CstTest()
|
||||
union csr.CsrSquare() union csr.Csvif() union
|
||||
csr.CsrSquare_CV()
|
||||
union array('截面波动率分解':csr.Rms_Return_Decomposing());
|
||||
return ret;
|
||||
```
|
||||
|
||||
### `backtest()`
|
||||
### `Backtest()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -234,7 +234,7 @@ csr.CSRSquare_CV()
|
||||
|
||||
返回:array
|
||||
|
||||
### `getTradeDays()`
|
||||
### `GetTradeDays()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -246,7 +246,7 @@ csr.CSRSquare_CV()
|
||||
|
||||
返回:array
|
||||
|
||||
### `getFactorData(endt)`
|
||||
### `GetFactorData(endt)`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -262,7 +262,7 @@ csr.CSRSquare_CV()
|
||||
|
||||
返回:array
|
||||
|
||||
### `getcsr(factor_data, endt)`
|
||||
### `Getcsr(factor_data, endt)`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -279,7 +279,7 @@ csr.CSRSquare_CV()
|
||||
|
||||
返回:obj
|
||||
|
||||
### `getFactorPerformance()`
|
||||
### `GetFactorPerformance()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -291,7 +291,7 @@ csr.CSRSquare_CV()
|
||||
|
||||
返回:array
|
||||
|
||||
### `getR2Performance(ma_length)`
|
||||
### `GetR2Performance(ma_length)`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -307,7 +307,7 @@ R 方时序 + 自定义窗口滚动均值,缺省 MALength=12
|
||||
|
||||
返回:array
|
||||
|
||||
### `getFactorReturn(return_type)`
|
||||
### `GetFactorReturn(return_type)`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -323,7 +323,7 @@ R 方时序 + 自定义窗口滚动均值,缺省 MALength=12
|
||||
|
||||
返回:array
|
||||
|
||||
### `getFactorCorr()`
|
||||
### `GetFactorCorr()`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -335,7 +335,7 @@ R 方时序 + 自定义窗口滚动均值,缺省 MALength=12
|
||||
|
||||
返回:array
|
||||
|
||||
### `getRMS(ma_length)`
|
||||
### `GetRMS(ma_length)`
|
||||
|
||||
声明:function
|
||||
|
||||
@@ -351,7 +351,7 @@ RMS 收益分解时序 + 自定义窗口滚动均值,缺省 MALength=12
|
||||
|
||||
返回:array
|
||||
|
||||
### `getR2Mean()`
|
||||
### `GetR2Mean()`
|
||||
|
||||
声明:function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user