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
Missing Values GeneratedHello, I have panel data for 820 companies for 19 years i.e. 15580 observations (820*). I ran the fo…
Manually creating/editing/storing estimates for esttabI am running a series of loops that try out all combinations of Stata's new lasso functions dsregres…
WTP space using effect code and estimated via the command of mixlogitwtpDear Experts, I am doing a DCE study and use the command of mixlogitwtp to estimate WTP space. All …
Question about xtitle of graphDear all,@Nick Cox I want to move the xtitle to the right and the above of the xaxis.This is my data…
Standard error of the residuals with vce(robust)Hi All, I am interested in getting the standard error of the residuals after using regress with vce…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy variable conditional to other dummy variable figures
Post a Comment