Hello, I'm a long-time lurker and first time poster.
I have a dataset in Stata with units (say, statefips codes) and dates at regular intervals (say, daily) and observations on variables X, Y, and Z.
I would like to extend my panel backwards in time T number of days, filling in the variables X, Y, and Z with 0 for all units. I have to do this many times, so manually inserting a first observation and then using carryforward could be prohibitively time consuming. Thank you.
Related Posts with Making a Balanced Panel Dataset in Stata 16 from (Almost) Scratch
Gologit2Hi all my name is Alistair, I've taken interest in the generalised ordered logit model, more speci…
Error option expression() requiredDear Stata User, To learn more about Industrial Organizations and STATA programming, I have been tr…
In mixed-effect model, how to display individual random slope/coefficient in the datasetHi Stata users, I am using a mixed-effect model with random intercept and random slope. Stata code l…
Running power analysis with more than two experimental groupsHi all. I want to run a power analysis to verify the necessary sample size to adequately run an expe…
Export Frequency tableHi, I'd like to export a frequency (one-way) table using svyset. The table would include: * the num…
Subscribe to:
Post Comments (Atom)
0 Response to Making a Balanced Panel Dataset in Stata 16 from (Almost) Scratch
Post a Comment