I have a panel data for 20000 stocks over a sample period from 1950 to 2018. What I need to do is to compute for each of this stocks a moving skewness and kurtosis over the previous 5 year. My data is on a monthly basis, therefore what it should be done is to compute those measures based on the first 60 observations of a given stock, then with a step of 12 month compute it again using the previous 5 years, and so on as long as the data is still available. Then it should be repeated for each stock.
Any idea on how to do this? I got stack in this problem since a while and have no idea ho to go on.
Ps. I'm still a beginner in Stata and for unknown reason I cannot download any external package. Would appreciate if you can present me any possible solution without those packages
Related Posts with Moving Kurtosis & Skewness for Panel Data
Ado fastcd: "command fastcd is unrecognized"Hello, I installed the fastcd ado (via search 'fastcd' and then install 'fastcd from http://fmwww.bc…
R (109) error codeHello all, apologies if this is a silly Q but I am a very newbie in Stata and just learning it! I …
xtpmg error message when running on logged variablesDear Statalist users, I am running xtpmg on stata 16.0. Running it on my level variables doesn't po…
Difference in Difference Model: Refine the definition of treatment and control groupHi all, I try to establish a standard DiD model with fixed effect to investigate the impacts of a m…
How to create new variables from date variables?Hi, I am working with a medicinal tests dataset. Three tests can be prescribed. The doctor can pres…
Subscribe to:
Post Comments (Atom)
0 Response to Moving Kurtosis & Skewness for Panel Data
Post a Comment