I am right now trying to generate annual return volatility for each company using the following formula with the monthly returns. My data contains a single number for all months of a given year for each firm. In the formula y stands for year and m stands for month and i stands for a firm. The units for vola are percentage points. I am not sure how to get to an annual return per company, should I use a loop? I don't even have a clue how to start
Attached is my provided data, where I already generated the company_id for each company, monthly returns are given by ret, and risk-free rate (rf) = rf
How to begin? how do I not double count, how to use an efficient way to get the annual return for each company even though the data is monthly? jeeeesus...
Thank you so so so much for your help!!! Best
Array
Related Posts with Annual return from each company, wen having monthly data given
Endogenous treatment modelDear all, I am having trouble using endogenous treatment model (eregress function). Basically I wa…
Too Large Wald chi2 StatisticsI am following the work of Acemolug, Restrepo(2020). Trying to figure out the effect of adopting rob…
Bar Graph: Show Category on x-axis with Zero ObservationsHi there, hoping to get some assistance with showing 4 categories along an x-axis of a bar chart (co…
How can we set a single base level for an interaction between two variables?Hi Statalist. I want to set a single base level for an interaction between two categorical variable…
How to plot the jumping shaded area?Dear Professors, how can I plot the jumping highlighted area in the attached plot? Thanks! Array …
Subscribe to:
Post Comments (Atom)
0 Response to Annual return from each company, wen having monthly data given
Post a Comment