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
Error calculating marginal effects with a tobit modelI am looking at the effect of permitting standards, rebates, average income, and electricity price o…
Choosing the right modeling technique available in STATADear Stata Experts: I am working on an assignment to predict state policy on a particular issue. Th…
Contour plot cannot handle missing xHi all, As you can see from my code below, I only want to plot the cells with F statistics higher t…
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
Subscribe to:
Post Comments (Atom)
0 Response to Making a Balanced Panel Dataset in Stata 16 from (Almost) Scratch
Post a Comment