Learn R Programming

facmodCS (version 1.0)

print.ffm: Prints a fitted fundamental factor model

Description

S3 print method for object of class ffm. Prints the call, factor model dimension and summary statistics for the estimated factor returns, cross-sectional r-squared values and residual variances from the fitted object.

Refer to summary.ffm for a more detailed summary of the fit at each time period.

Usage

# S3 method for ffm
print(x, digits = max(3, .Options$digits - 3), ...)

Value

Returns an object of class print.ffm.

Arguments

x

an object of class ffm produced by fitFfm.

digits

an integer value, to indicate the required number of significant digits. Default is 3.

...

optional arguments passed to the print method.

Author

Yi-An Chen and Sangeetha Srinivasan

See Also

fitFfm, summary.ffm

Examples

Run this code
if (FALSE) {
library(PCRA)
data(stocksCRSP)
data("factorDataSetDjia5Yrs")
# fit a fundamental factor model
fit.style.sector <- fitFfm(data=factorDataSetDjia5Yrs, 
                           asset.var="TICKER", 
                           ret.var="RETURN", 
                           date.var="DATE", 
                           exposure.vars = c("P2B", "MKTCAP"))
print(fit.style.sector)
}

Run the code above in your browser using DataLab