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
IV blows up coefficientsDear Stata Users Comparing a RE (xtreg, re) with and IV (xtivreg, re) model, I receive quite large …
Data sharingDear all, Not sure if I'm writing on a correct page, but I'm completely sure that a lot of people h…
Extract Monte Carlo results from MataDear all, I am doing a 2000 times monte carlo simulation of two-stage least square estimation with …
Need to count with several conditionsI want to count how many contracts the company already had in the inventory when the company signs t…
Choice and Implementation of Regression Technique for Pooled dataHello Everyone I am trying to run regressions of the form given below for the first time: [ATTACH=…
Subscribe to:
Post Comments (Atom)
0 Response to Simple question from a beginner
Post a Comment