Hi,
I'm using SHARE dataset where there is a dummy variable for people having played chess/cards in the previous year (ac035d10) and another one for people having played sudoku/puzzles in the previous year (ac035d9).
I want to generate a new dummy variable "edu_inf" (people involved in informal learning activities in the previous year) based on the two existing variables.
Obviously some people could have played both chess/cards and sudoku/puzzles in the previous year.
How can I generate in STATA this new variable?
Related Posts with a new variable based on two existing variables
INVERSE MILLS RATIOS of an ORDERED PROBITDear Statalist, I am trying to get the INVERSE MILLS RATIOS of an ORDERED PROBIT, but I do not know…
Correcting the condition for the creation of a new variable based on a duration since an initial assessementHello All, I hope this message finds you well! I have longitudinal unbalanced data and I am trying…
Is it posible to make a math formula on a twoway tab?Hi. I'm having a little problem with the tab option. I have data that is presented like this: REG…
Re-coding 2 race/ethnicity variablesHello, I have a survey with 2 variables related to race/ethnicity I need to re-code. The first (lab…
mibeta interpretationI have a question regarding the output that I get with the mibeta commad. I ran mibeta on multiple i…
Subscribe to:
Post Comments (Atom)
0 Response to a new variable based on two existing variables
Post a Comment