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
The rank of the differenced variance matrix does not equal the number of coefficients being testedHi there, I have a panel data and I want to do Hausman Test but it keeps on showing this note: . …
Question CEO Duality applying to whole firm in a yearHello everyone, For my thesis I have to investigate CEO Duality. CEO Duality is when the CEO of the…
Combine graph plot yearsHi guys, I have 9 variables that I'd like to plot with tsline. The data is monthly and I am not abl…
Merging Specific File Names onlyHello Everyone, Hope you all are doing well. I have this somewhat confusing query which I am tryin…
Repeated time values within panel error in ESS cumulative fileI'm trying to run a fixed effects panel data analysis with a cumulative file of the European Social …
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy variable conditional to other dummy variable figures
Post a Comment