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
Aalen Johansen estimates of the cumulative incidence - how to include numbers at risk in figureHi, In am using the Aalen Johansen estimator to plot the cumulative incidence of my specific outcome…
Using -expand- to duplicate multiple rowsI have data that look like the following: Code: * Example generated by -dataex-. To install: ssc i…
Collapse function, error - variable not found + error in option by ())Good afternoon to the community. I would like to calculate the mean and standard deviation of intang…
Calculating CIs after mixed-effects poissonHi all, I'm trying to graph the results of a mixed-effects poisson model and have come across some i…
lincom command with same variable after suregDear all, I am running a Seemingly-Unrelated-Regression using -sureg- for 80 banks. Brief backgroun…
Subscribe to:
Post Comments (Atom)
0 Response to Creating dummy variable in Panel Data
Post a Comment