fitFfmDT | R Documentation |
This function fits a fundamental factor model
fitFfmDT(
ffMSpecObj,
fit.method = c("LS", "WLS", "Rob", "W-Rob"),
resid.scaleType = c("StdDev", "EWMA", "RobustEWMA", "GARCH"),
lambda = 0.9,
GARCH.params = list(omega = 0.09, alpha = 0.1, beta = 0.81),
GARCH.MLE = FALSE,
lmrobdet.control.para.list = lmrobdet.control(),
...
)
ffMSpecObj |
a specFfm object |
fit.method |
method for estimating factor returns; one of "LS", "WLS" "ROB" or "W-ROB". See details. Default is "LS". |
resid.scaleType |
one of 4 choices "StdDev","EWMA","RobustEWMA", "GARCH" |
lambda |
the ewma parameter |
GARCH.params |
list containing GARCH parameters omega, alpha, and beta.
Default values are (0.09, 0.1, 0.81) respectively. Valid only when
|
GARCH.MLE |
boolean input (TRUE|FALSE), default value = |
lmrobdet.control.para.list |
list of parameters to pass to lmrobdet.control().
Sets tuning parameters for the MM estimator implemented in lmrobdetMM of the
RobStatTM package. See |
... |
additional pass through arguments |
this function operates on the data inside the specObj fits a fundamental factor model to the data
fitFfm
returns a list with two object of class "data.table"
The first reg.listDT is object of class "data.table"
is a list containing the following
components:
DATE |
length-T vector of dates. |
id |
length-N vector of asset id's for each date. |
reg.list |
list of fitted objects that estimate factor returns in each
time period. Each fitted object is of class |
The second betasDT is object of class "data.table"
is a list containing the following
components:
DATE |
length-T vector of dates. |
R_matrix |
The K+1 by K restriction matrix where K is the number of categorical variables for each date. |
specFfm
for information on the definition of the specFfm object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.