Description Usage Arguments Author(s) Examples
Generic function of plot method for fitFundamentalFactorModel.
1 2 3 4 5 6 |
x |
fit object created by fitFundamentalFactorModel. |
which.plot |
integer indicating which plot to
create: "none" will create a menu to choose. Defualt is
none. |
max.show |
Maximum assets to plot. Default is 4. |
plot.single |
Plot a single asset of lm class. Defualt is FALSE. |
asset.name |
Name of the asset to be plotted. |
which.plot.single |
integer indicating which plot to
create: "none" will create a menu to choose. Defualt is
none. |
legend.txt |
Logical. TRUE will plot legend on
barplot. Defualt is |
VaR.method |
character, method for computing VaR.
Valid choices are one of
"modified","gaussian","historical", "kernel". Computation
is done with the |
... |
other variables for barplot method. |
Eric Zivot and Yi-An Chen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# BARRA type factor model
data(Stock.df)
# there are 447 assets
exposure.names <- c("BOOK2MARKET", "LOG.MARKETCAP")
fit.fund <- fitFundamentalFactorModel(data=data,exposure.names=exposure.names,
datevar = "DATE", returnsvar = "RETURN",
assetvar = "TICKER", wls = TRUE,
regression = "classic",
covariance = "classic", full.resid.cov = TRUE,
robust.scale = TRUE)
plot(fit.fund)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.