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
Is it a problem if all my independent and control variables are insignificant?The overall model scores like this: R-squared = 0.0061 Adj R-squared = -0.0129 So the model seems u…
interaction terms missing in output--please help!Hi all, I'm conducting a diff-in-diff analysis and I'm using margins to test the parallel trends ass…
summary statistics per categoryHi, I'm dealing with panel data and want to summarize statistics per category (of credit ratings). …
compare and test "r2_a" across two regressionsHi everyone! I want to compare adjusted R2 across two models. To be more specific, assume that usin…
Fixed effects analysisDear all, I will please like to find out if i combine two cross sectional data to form a panel will…
Subscribe to:
Post Comments (Atom)
0 Response to tsappend
Post a Comment