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
Linking person-year records across different people (using NLSY97)Aloha, I am using the NLSY97 and doing a project where I need to link siblings within the data. I ha…
Combining exact and propensity score matchingHi all, Would appreciate help with matching on propensity score within bins. I have either: Code…
Histograms in loopHello Sir Have some issues with including titles in histograms in a loop. The code is running but n…
Creating new IDs with a set number of observationsHello all, I am trying to run a simulation on a dataset that contains user reviews. I have a select…
Flag individuals who have repeated a grade in schoolHi statalist, Please consider the following example data: Code: * Example generated by -dataex-. T…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy variable conditional to other dummy variable figures
Post a Comment