Hi,
I need to calculate stock volatility using CRSP daily stock returns. According to the article, it is calculated using the square root of the sum of squared daily returns over the year. To adjust for differences in the number of trading days, the raw sum is multiplied by 252 and divided by the number of trading days. I have the variable "returns". Does anyone which code to use for this?
Another thing: the CRSP data was too big to download at once, so I need to merge. However, when I try to merge, it gives the error: factor-variable and time-series operators not allowed. What should I do?
Thanks in advance!
Related Posts with Stock volatility
dropping observationsHi b1 is month of birth and b2 is year of birth. I want to drop all the observations below March 20…
Question for controlling the variables reported in a regression tableMy question is a two parter -I am attempting the below regression using twelve controls. Is it possi…
R(2000) error in clogithet regressionI have two subgroups of respondents: the ones who saw traffic-light labelling and the ones who did n…
Likely a very simple question: what is the syntax for adjusting the y axis position offset?Greetings, I'm running Stata 15 on OSX. I'm struggling to figure out how to adjust the position of …
Saving the country graphs by their names (in a loop)Hi... I have created a code that titles the graphs by their "id". I want to title the graphs by thei…
Subscribe to:
Post Comments (Atom)
0 Response to Stock volatility
Post a Comment