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
Plotting Matrix as pdf with two values in each cell and coloring with respect to both valuesHello, I'm trying to plot a matrix as a pdf file. There are two things in particular I would like t…
Robust standard errors for Panel Count DataHi Statalisters, I have panel count data and it appears to me that it has rather a negative binomia…
Propensity score matching with restrictionsDear all, I have a monthly panel data of firm (variable: gvkey) and their turnover (variable: trn) …
Adding values in estpost/esttabHi, i'm using estpost and esttab to export variables summarizes. I would like to get Count/750 for e…
regression by industry and yearHi members, I am trying to run a regression by industry and year. I used the following code but I g…
Subscribe to:
Post Comments (Atom)
0 Response to Stock volatility
Post a Comment