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
Generate new variable from several variablesI have a survey dataset from several countries from a few time periods. Each country and period has …
Struggling to convert latitude and longitude to x and y coordinates (geo2xy)Hello I have a dataset of latitude and longitude points that I need to convert to X and Y coordinate…
Beginner question, loop command for net returns, error code r(198) "`var' invalid name"Hi everyone, I have a time series set of monthly currency spot rates from multiple countries. I als…
Creating a table for many variablesHello everyone, I have a data which has a categorical variable (north/south) and about 10 variables …
Merging on the basis of Date for CRSP stocks dataHello, I am merging the CRSP stock prices dataset with the CRSP value-weighted index on the basis o…
Subscribe to:
Post Comments (Atom)
0 Response to Moving Kurtosis & Skewness for Panel Data
Post a Comment