Provided with futures contract front or equity price data from Bloomberg retrieved with pullit, construct market factor.
market_factor(data, return_frequency = "month", long = T) # S4 method for FuturesTS market_factor(data, return_frequency = "month", long = T) # S4 method for EquityMarket market_factor(data, return_frequency = "month", long = T)
data | an S4 object of class |
---|---|
return_frequency | a scalar |
long | a scalar logical vector. If |
An S4 object of class AssetPricingFactor
.