Description Usage Arguments Details Value Examples
nefin_data returns a DataFrame with financial data from NEFIN website.
1 2 | nefin_data(data, category = "unique", portfolio_weight = "Equally",
frequency = "")
|
data |
a string containing the type of data to download. Available options: Cost of Equity ("COE"), Dividend Yield ("dividend_yield"), Illiquidity Index ("illiquidity_index"), Loan Fees ("loan_fees"), Portfolios ("portfolios"), Risk Factors ("risk_factors"), Short Interest ("short_interest"), Volatility Index ("volatility_index"). |
category |
a string (or a vector of string) containing the category of data to download. Only necessary for Cost of Equity, Porfolios, Risk Factors and Volatility Index data type. See 'Details'. |
portfolio_weight |
a string. Choose "Equally" (default option) for Equally Weighted Returns and "Value" for Value Weighted Returns |
frequency |
an optional string. Choose "month" for monthly data and "year" for annual data. Only available for Cost of Equity, Risk Factors, Dividend Yield, Illiquidity Index, Loan Fees and Short Interest. See 'Details'. |
If you choose Cost of Equity, Portfolios, Risk Factors or Volatility Index in category,
you need to choice one or more available options for category. If you use the default option,
the function will download all available options.
Use a string for one option and a vector of string for more than one option.
Cost of Equity: Basic Products ("Products"), Construction ("Construction"), Consumer ("Consumer"), Energy ("Energy"),
Finance("Finance"), Manufacturing ("Manufacturin"), Other ("Other").
See details of each category here
Portfolios: 3 portfolios sorted by size ("size"), 3 portfolios sorted by book-to-market("btm"),
3 portfolios sorted by momentum ("momentum"), 3 portfolios sorted by illiquidity ("illiquidity"),
4 portfolios sorted by size and by book-to-market ("size_btm"), 4 portfolios sorted by size and by momentum ("size_momentum"),
4 portfolios sorted by size and illiquidity ("size_illiquidity")
7 portfolios sorted by industry ("industry").
See more details here
Risk Factors: Market Factor ("Rm_minus_Rf"), Small Minus Big ("SMB"), High Minus Low ("HML"),
Winners Minus Losers ("WML"), Illiquid Minus Liquid ("IML"), Risk Free ("Risk_free").
See details here.
Volatility Index: IVol-Br Volatility Index ("IVolBR"), Variance Premium ("variance_premium"), Risk Aversion ("risk_aversion")
If you choose Portfolios in category, you also need to choose an option for 'portfolio_weigth".
The default option is "Equally" for Equally Weighted Returns and the other option is "Value" for Value Weighted Returns.
For frequency, the default option are:
Cost of Equity: monthly
Dividend Yield: weekly
Illiquidity Index: monthly
Loan Fees: monthly
Portfolios: daily
Risk Factors: daily
Short Interest: weekly
Volatility Index: daily for IVol-Br and weekly for Variance Premium
For Cost of Equity, Dividend Yield, Illiquidity Index, Loan Fees, Portfolios and Short Interest,
you can choose "year" for annual data or "month" for monthly data.
For information about the methodology used, click here.
A DataFrame containing the selected data
1 2 3 4 5 6 7 | dataframe <- nefin_data(data = "portfolios", category = "size", portfolio_weigth = "Value", frequency = "year")
dataframe <- nefin_data(data = "COE", category = "Products")
dataframe <- nefin_data(data = "illiquidity_index")
dataframe <- nefin_data(data = "loan_fees")
dataframe <- nefin_data(data = "dividend_yield")
dataframe <- nefin_data(data = "short_interest")
dataframe <- nefin_data(data = "risk_factors", category = "Rm_minus_Rf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.