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
Collapse different columns differentlyIn a panel database of companies (bisnode), the revenue information is not always for the full year.…
Results InterpretationHi everyone, Can anyone help me interpret these results, specifically the F-test below. What does t…
Replacing missing variable with other observations that satisfy certain conditionsHi all, I am working on a cross-country dataset. The dataset is created when I merge the bilateral t…
Why do i have large z test statistics when i ran translog modelFirst i ran frontier model and then i did translog method here i have obtained large wald chisquare …
Machine Learning setupHow can I break down my loaded dataset into training set and test set, and develop random forest on …
Subscribe to:
Post Comments (Atom)
0 Response to Moving Kurtosis & Skewness for Panel Data
Post a Comment