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
Trouble with date functionHey, this is my first post in here, I hope I can master this software and later on help others. So r…
Time-series regression with varying independent variables over timeDear forum, I am new to this forum and want to ask for your opinion on a time-series regression (20…
FmmHi, I have an FMM model with three class. Because the dv is binary, logistic regression is used. Le…
Panel data format: varlist as IDsHello Statalisters, I have the following daily data shape: date day city_1_price_A ... city_70_pric…
estimating lagged standard deviation of past three yearsI have a panel data setting. I want to create another variable i.e. the standard deviation of invest…
Subscribe to:
Post Comments (Atom)
0 Response to tsappend
Post a Comment