Hi, i want to create a dummy variable (group-wise). my data ranges between 2001 to 2010. Features of the dummy variables are below:
Condition 1. the dummy variable equals one if variable AQA value for firm i in year t is non-missing or non-zero
Condition 2. in condition 1, for example AQA value is non-zero in year 2004 for firm i, then i want dummy variable for firm i equals one from year 2004 to end year 2005, 2006, 2007, 2008, 2009, and 2010.
Related Posts with Creating dummy variable in Panel Data
Need help with nested logit marginal effectsDear scholars, I am having problem estimating the marginal effects after the estimation of my nested…
Loop foreach helpHi everyone. I am trying to fill in missing values in one variable by completing it with values from…
Why does Stata graph box not ignore missing values _hi Stata Gurus, I am trying to check the outliners in my data. For example, the total asset (ta) of …
Omitted dummy variables due to collinearity, but missing values should prevent them entering the modelDear Statalisters, I am using Stata SE 17 on Windows 10. I'm conducting a panel data analysis with t…
Speed comparison: Passing data vector by name vs pointers in Mata | StataI was experimenting with different uses of pointers. Turns out that in a larger dataset, pointer mig…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable in Panel Data
Post a Comment