predict.tsfmUpDn {facmodTS} | R Documentation |
Predicts asset returns based on a fitted up and down market time series factor model
Description
S3 predict
method for object of class tsfmUpDn
. It
calls the predict.tsfm
method for a list object of Up
and Dn
Usage
## S3 method for class 'tsfmUpDn'
predict(object, ...)
Arguments
object |
an object of class |
... |
optional arguments passed to |
Value
predict.tsfmUpDm
produces a list of Up
and Dn
. Both Up
and Dn
contain a
vector or a matrix of predictions.
Author(s)
Yi-An Chen and Sangeetha Srinivasan
See Also
predict.tsfm
,fitTsfmUpDn
, summary.tsfmUpDn
Examples
# 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)
[Package facmodTS version 1.0 Index]