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
Predicting individual-level slopes and intercepts after running linear spline mixed-effects models on imputed dataHi All I'm struggling for several weeks now to find a solution to my problem below, but with no luc…
TWANG mnps command not recognizedI'm trying to run a propensity score analysis for a study with 3 treatment groups. I've downloaded t…
Changing format of ylabels in a schemeHi, I want to add a parameter to a scheme to make the ylabels of a graph display in a given format.…
Using Seeming unrelated regression with Cloglog methodHi, I am trying to run seeming unrelated regression estimation (SURE) with cloglog method. I have an…
Export twoway tables to Excel with Stata 12.1Hello, I know my stata version is quite old, but this is what I work with. Is there a possibility to…
Subscribe to:
Post Comments (Atom)
0 Response to a new variable based on two existing variables
Post a Comment