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
Correlation PbHello, I am pretty new to Stata and econometrics in general so please excuse me if my question seem…
Composite IndexHi! I am trying to generate a composite index for 2 numerical variables. what is the best way to do …
drop all zero variablesHello, I have created dummy variables for industries, resulting in 35 dummies. However, I deleteted…
Predictions with and without BLUP after melogitI am attempting to calculate predictions after a melogit model with and without best linear unbiased…
Three-level mix-effect model for ordered logistic regression in Stata- meologit regressionDear all, I am currently working with a cluster data collected from 3229 respondents in 40 counties…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable in Panel Data
Post a Comment