predict.tsfmUpDn: Predicts asset returns based on a fitted up and down market...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predict.tsfmUpDn.r

Description

S3 predict method for object of class tsfmUpDn. It calls the predict.tsfm method for a list object of Up and Dn

Usage

1
2
## S3 method for class 'tsfmUpDn'
predict(object, ...)

Arguments

object

an object of class tsfmUpDn produced by fitTsfmUpDn.

...

optional arguments passed to predict.lm or predict.lmRob, such as se.fit, or, to predict.lars such as mode.

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

1
2
3
4
5
6
7
# load data from the database
data(managers)
# fit the factor model with LS
fitUpDn <- fitTsfmUpDn(asset.names=colnames(managers[,(1:6)]),mkt.name="SP500.TR",
                       data=managers, fit.method="LS")
 
predict(fitUpDn)

sangeeuw/factorAnalytics documentation built on May 28, 2019, 3:40 p.m.