Good morning/afternoon/evening/night
I'm new to stata and I'm trying to generate a dummy variable from a variable called abc. This variable was a question and from this question I would like two answers to be given the value '1' and the other answers the value '0'.
The values of these answers that need to be given a '1' are 1 and 4. I tried to do: gen abc1=1 if abc==1 & 4, but this did not work. Does anyone know how to do this?
Thank you in advance
Related Posts with Simple question from a beginner
Number of IDs per groupHi all, I have panel data with an identifier(ID) and a time variable(mofd, monthly). Based on a cha…
Choosing between OLS, RE and FEDear Statalisters, I have an unbalanced panel data (N=19 and T=9), I want to choose between runnin…
Label firms with certain consecutive criteriaHi there, This sounds silly but i am stuck here for a while. I have a question regarding labelling f…
Regression tables with esttab - display confidence interval & p-valueHi, I am using esttab to create tables after logistic regression. I present the OR & the 95%CI …
Help for analysis method in field trialHi My study is about finding the most effective intervention to reduce the risk factors of non-comm…
Subscribe to:
Post Comments (Atom)
0 Response to Simple question from a beginner
Post a Comment