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
Alternatives to ratio of two count variables when there are zerosHello everybody, I apologize in advance for the lengthy post but I just want to provide some contex…
How to reshape data from wide to long with "tricky" variable names and how to merge multiple data files?Hi, I have two questions regarding data cleaning: Q1) I have a following wide data and want to conv…
Variable with negative valuesHey, I'm stuck on a simple thing and would really need some help. I have a non-numeric variable ran…
Creating a new categorical variable by spousal agreement/disagreementHi, I'm trying to create a new categorical variable that indicates (heterosexual) spousal disagreeme…
Doing Bayesian modelling in StataHello This is something that has puzzled me for a while but I haven't pursued it because I use rsta…
Subscribe to:
Post Comments (Atom)
0 Response to generate POST and PRE Variable
Post a Comment