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
Problems with mergeHi there, I was trying to merge two datasets (code:joinby), however it seems that stata cannot iden…
New version of xcontract on SSCThanks as always to Kit Baum, a new version of the xcontract package is now available for download f…
Panel data and count dependent variableHi all, I have a panel data set of 18 years and 50 regions. My dependent variable is a count one, wi…
Problem with egen rownonmiss, strokHello, I am trying to create a variable that will count how many nonmissing responses across severa…
fuzzy fsQCA bestfit displaying few casesHello Statalist, I am conducting a fuzzy-set QCA using the 'fuzzy' package written by Longest &…
Subscribe to:
Post Comments (Atom)
0 Response to a new variable based on two existing variables
Post a Comment