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
Questions about the spmap commandHello Stata Community, I am currently using STATA/SE 14 to analyze social expenditure at the region…
how to get foreach of varlist v1-v10 take every second variable from the specified set (v1 v3 v5...)?Hi dear Statalisters, I was wondering if there is any way to get Stata to pick every second variable…
Adjusting variables with Nelson-Aalen cumulative hazard functionDear all! I am struggling with the survivor function of the Nelson-Aalen cumulative hazard function…
How to use percentile data and raw data?Hi everyone I have a question for you? The model I use has both percentage variables and raw data. A…
Inconsistent Behavior Between Mata Functions and Identical Class Methods Toward Object TypesThis is occasioned by a thread begun by Alfonso Sánchez-Peñalver here. It’s been a while since I’ve…
Subscribe to:
Post Comments (Atom)
0 Response to ‘Or’ condition for time dummies
Post a Comment