Hi everybody,
I want to generate a dummy POST and PRE variable in panel. When in the panel a certain CIK gets 1 from the variable Controversies the variable POST must get 1 the next FiscalYear and when in panel a certain CIK gets from the variable controversies the variable PRE must get the previous FiscalYear.
Can anyone help?
Thanks! Array
Related Posts with generate POST and PRE Variable
Creating categorical summary values for cities annually, weighted/unweightedHi guys. New to running Stata for large groups. I'm working with IPUMs American Community Survey Da…
Remove part of a Text in observationHi guys, Below is a sample of my data. I would like to remove the "-TOT RETURN IND" in all the obser…
xtivreg2 export first and second stage resultsAs the description of xtivreg2 says, it is the wrapper of ivreg2. But the "savefirst“ option of ivre…
Number of timepoints for person fixed effectsIs there some sort of arbitrary number of timepoints needed in order to estimate person fixed effect…
Merge mulitple .csv filesI am using Stata 16.1 MP to merge six .csv files on neonatal, infant, and child mortality. I would l…
Subscribe to:
Post Comments (Atom)
0 Response to generate POST and PRE Variable
Post a Comment