Skip to content

Commit

Permalink
#43 fixes , removed from examples and Stocks.df
Browse files Browse the repository at this point in the history
 and `StockReturns` discussed in #34
  • Loading branch information
JustinMShea committed Aug 22, 2021
1 parent 064a7eb commit 7e6751a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 30 deletions.
19 changes: 4 additions & 15 deletions R/fmCov.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,19 @@
#' \code{method}.
#'
#' @examples
#' # Time Series Factor model
#' # Time Series Factor model example
#' # load data
#' data(managers, package = 'PerformanceAnalytics')
#' # Make syntactically valid column names
#' colnames(managers)
#' colnames(managers) <- make.names( colnames(managers))
#' colnames(managers)
#'
#' fit <- fitTsfm(asset.names=colnames(managers[, (1:6)]),
#' factor.names=c("EDHEC.LS.EQ","SP500.TR"), data=managers)
#' fit <- fitTsfm(asset.names = colnames(managers[, (1:6)]),
#' factor.names = c("EDHEC.LS.EQ","SP500.TR"),
#' data = managers)
#' fmCov(fit)
#'
#' # Statistical Factor Model
#' data(StockReturns)
#' sfm.pca.fit <- fitSfm(r.M, k=2)
#' fmCov(sfm.pca.fit)
#'
#' # Fundamental factor Model
#' data(Stocks.df)
#' exposure.vars <- c("BOOK2MARKET", "LOG.MARKETCAP", "GICS.SECTOR")
#' fit2 <- fitFfm(data=stock, asset.var="TICKER", ret.var="RETURN",
#' date.var="DATE", exposure.vars=exposure.vars)
#' fmCov(fit2)
#'
#' @rdname fmCov
#' @export

Expand Down
19 changes: 4 additions & 15 deletions man/fmCov.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e6751a

Please sign in to comment.