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
complex tag - I thinkHello, below is a case where a person has 2 rows of data and and 2 different values for the variable…
No Observation Error with correlationHi everyone, I'm very new to Stata and I am very confused my this error. I have created two variable…
Time series dummy variableHi all, I am trying to make a time-series line plot for employment as a dummy variable (called "lfs…
Ordinal independent variable treated as continuous & marginal effects in ordinal logistic regressionHello, I am an economics student doing an undergraduate empirical dissertation using data from the …
From monthly to yearly in %Hello! Code: * Example generated by -dataex-. For more info, type help dataex clear input float(fu…
Subscribe to:
Post Comments (Atom)
0 Response to ‘Or’ condition for time dummies
Post a Comment