View source: R/predict.tsfmUpDn.r
predict.tsfmUpDn | R Documentation |
S3 predict
method for object of class tsfmUpDn
. It
calls the predict.tsfm
method for a list object of Up
and Dn
## S3 method for class 'tsfmUpDn'
predict(object, ...)
object |
an object of class |
... |
optional arguments passed to |
predict.tsfmUpDm
produces a list of Up
and Dn
. Both Up
and Dn
contain a
vector or a matrix of predictions.
Yi-An Chen and Sangeetha Srinivasan
predict.tsfm
,fitTsfmUpDn
, summary.tsfmUpDn
# load data
data(managers, package = 'PerformanceAnalytics')
# fit the factor model with LS. example: Up and down market factor model with LS fit
fitUpDn <- fitTsfmUpDn(asset.names = colnames(managers[,(1:6)]),
mkt.name = "SP500 TR",
data = managers,
fit.method = "LS")
predict(fitUpDn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.