Hi,
I have a question about time dummies. Is it possible to have an ‘or’ condition for a time dummy? What I mean is for example: say my panel data is for the years 2000-2010, and I want to include a time dummy for whether two specific years (2005 and 2008) were significant or not. So D=1 if the given year is 2005 OR 2008, and D=0 otherwise. I am struggling to code this, help would be much appreciated!!
Many thanks,
Riaz
Related Posts with ‘Or’ condition for time dummies
List values of one variable in blocksDear Stata users, I have a name list, and I want to list these names in blocks according to a crite…
convert panel data from annual to monthly dataHere is my panel data, and I want to convert the dataset from annually to monthly data. So can we re…
Reshape wide to longHi I have a question using the code -reshape-. For each year denoted by alphabet 'a' to 'd'. Ex) 20…
Create two-way line graph with shaded confidence intervals from dstdize resultsHello, I am struggling to create a simple, two-way line graph representing the results from my stand…
Adding error bars to bar graphHi all, can someone please assist me with how to add error bars to the bar graph attached. Thanks. …
Subscribe to:
Post Comments (Atom)
0 Response to ‘Or’ condition for time dummies
Post a Comment