View source: R/market_safety.R
market_safety | R Documentation |
Given a data frame of companies (names and tickers), a data frame of financial statements, and a data frame of daily price data, calculates BAB, IVOL, LEV, O, Z, and EVOL, and determines the z-score of overall safety for each company based on the paper Quality Minus Junk (Asness et al.) in Appendix page A2.
market_safety(
companies = qmj::companies_r3k16,
financials = qmj::financials_r3k16,
prices = qmj::prices_r3k16
)
companies |
A data frame of company names and tickers. |
financials |
A data frame containing financial statements for every company. |
prices |
A data frame containing the daily market closing prices and returns. |
data.frame of market safety values
market_data
market_profitability
market_growth
market_payouts
# Takes more than 10 secs
market_safety(companies_r3k16[companies_r3k16$ticker %in% c("AAPL"), ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.