Can we do tsappend with some formula. Suppose we have yearly time series up to 2019. I extend 4 observations. So 4 missing values generated. Now I want to fill it considering moving average of last 3 years. So if the variable is growth, then 2020 growth will be average growth of 2017, 2018, 2019./ 2021 growth will be average growth of 2018, 2019 and 2020. How to write the command without typing in data editor of STATA.
Related Posts with tsappend
To transform cross-section data to panel dataDear Sir/Madam, I am doing the research on commercial jet aircraft, and each sample has "lease star…
Panel data gaps and minimum number of observationsDear Statalisters, I am currently working on my Master Thesis and thus I analyze company financials…
rlaplace(m,b) command not workingHi, I would like to generate a random variable according to the laplace distribution. The command '…
Facing problem in analyzing unbalanced panel data / using gmm both system and differenceHi dear all i am getting the below error of not sorting of data before running gmm...can you share w…
How to validate logit model?Hi, any ideas how to validate the logit model in Stata? I have a received a comment that there is n…
Subscribe to:
Post Comments (Atom)
0 Response to tsappend
Post a Comment