Hello everyone,
I have daily panel data and I want to calculate the standard deviation of the firm's daily stock return over the past three months. Could anyone help me to find an appropriate code to calculate annualized 3-month rolling sample standard deviation and assuming the standard deviation is centered on zero, instead of centered around mean value given a time period.
Sample of my dataset is attached :
Kind Regards
Obada
Related Posts with Calculate the standard deviation of the firm's daily stock return over the past three months
"( invalid name" r198 error while running a loop tempname sdgp_format postfile `sdgp_format' state gdp_pcap fyear using sdgp_format.dta forvalues j …
How to get results for all observation in addition to by group while using forvaluesHello there, Can you help me how i can generate descriptive or regression results for total in addi…
r(303) equation not found after using "test" command to see if coefficients = 0I am trying to test if the sum of coefficients is significantly different from 0, but for some reaso…
Merging two datasets with a common variableHello all, I am using STATA 16 Please I want to merge two datasets, using the common variable medcod…
reghdfe takes hours - how to run panel regressions with FE faster?Good morning, I have a dataset with 4 million observations on 2 million students in two points in t…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate the standard deviation of the firm's daily stock return over the past three months
Post a Comment