Question
Lets construct tradable portfolios from the given dataset. Upload data in R. Data contain daily close prices, standard industrial classification (SIC) code and market cap
Lets construct tradable portfolios from the given dataset.
Upload data in R. Data contain daily close prices, standard industrial classification (SIC) code and market cap (ME) for a large cross-section of stocks in the US. The first row contains the permno of any given stock, whereas the second row contains the date, the third the SIC code, the fourth the closing price, and the fifth market cap. And then upload the five Fama-French factors monthly data.
Write the R code to form decile portfolios sorting stocks by market cap at the end of each month, considering the effect of the SIC code. Report the average number of stocks and the average ME within each decile for each SIC code, over the considered sample.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started