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
Spatgsa - dimension of the matrix vs number of observationsDear Statalist members, I have an identical problem as the one previously published in the forum: h…
Where to Specify Temporary Names for Local Macros Inside Ado FilesStata Listers: I have a general question about where to specify temporary names for local macros in…
Matching observations in a quasi-random processDear Statalisters, I want to create a set of observations which is used to test different models la…
Running Two Limit Tobit modelHello, I have been attempting to run a Two Limit Tobit model on my data. I have a relatively large d…
Should I add age^2 when working with panel data or not?Hi all, I am analyzing the effect of marital status on life satisfaction for a period of 32 years o…
Subscribe to:
Post Comments (Atom)
0 Response to a new variable based on two existing variables
Post a Comment