Hi everyone,
I have two dummy variables, holder67 and holder30, which are equal to 1 if the value of another variable, COND is equal or above 0.67 and 0.30 respectively.
Now I am looking to generate a new dummy variable "holder30-holder67", which will equal to 1 if holder30=1 but holder67=0 to capture low-to-moderate degree of overconfidence.
What would be the code to generate such dummy variable dependent on the values of other dummy variables?
Thanks in advance!
Related Posts with Generating dummy variable conditional to other dummy variable figures
How to explain the results of t2way5 i.e. Tukey's Two-Way Analysis by MediansDear Stata users, Nick Cox had written a command named -t2way5- (SSC) to execute Tukey's Two-Way An…
Confusion about create matching pair id for conditional logistic regressionDear Statalisters, I use -ccmatch- creating match pair of fdz (0 1) base on condition of (size0 ind…
converting nominal stock returns into real stock returnsHi This is a basic question but thought someone in macroeconomics or finance (or any related discip…
dynamic panel estimation using OLS - what am I missing?I am writing up research using the excellent xtabond2 to estimate correlates of economic growth usin…
Mundlak procedureDear all, When using the Mundlak procedure, if one wishes to include year fixed effects (i.e. a dum…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy variable conditional to other dummy variable figures
Post a Comment