Hi everyone,
I am a university student, so I am a beginner with STATA.
My question is simple:
I have 2 dummies; Fondation (0,1) and Export (0,1).
I need to create a new dummy that will have value=1 ONLY IF both Fondation and Export are =1.
What command should I use?
Thank you, Michele :D
Related Posts with Create a dummy with 2 condition
Difficiculties with predicting GDPHi, I am writing my bachelor's thesis right now, and I am having difficulties with the predict comma…
How to keep first record but drop missing in longHI all, I have a dataset in long-format and would like to drop information so that I can just keep …
Weighting European Social SurveyHello everyone, Does anyone here know when to use each weight in the European Social Survey? I'm us…
Omitted values while doing regression with fixed effectsStatalist forum, I am trying to do 4 regression models with fixed effects. However, when I run the …
Bug in -svy: mean- ?I have a bit of code that looks like this: Code: qui { putexcel set test.xlsx, replace us…
Subscribe to:
Post Comments (Atom)
0 Response to Create a dummy with 2 condition
Post a Comment