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
gender changes in the panel surveyDear Statalist Community, due to my thesis I am allowed to work with stata. My dataset comes from a…
Transfering Kendal correlations into WordDear all contributors, I am calculating Kendal correlations of more than 100 variable couples and w…
Generating new columns for each unique value of a categorical variableDear All, The issue I am trying to resolve here is as follows- I have a dataset where customers pur…
Running regressions with an index I createdHi all, I am running a regression on the impact of freedom in a country on socioeconomic developmen…
Consistent estimatorDear all, Suppose we have a lot of observations. Suppose the following model : y = b*x + e , where …
Subscribe to:
Post Comments (Atom)
0 Response to a new variable based on two existing variables
Post a Comment