Question: Imagine we have a binary numeric variable named employed that is equal to 2 if the individual is employed and 1 if the individual is
Imagine we have a binary numeric variable named "employed" that is equal to if the individual is employed and if the individual is not employed. We want to create a new variable that is equal to if employed and otherwise. What is wrong with this code?
It should be: gen newvar employed
It should be: gen newvaremployed
"gen" is not the correct command to construct new variables
It shcyld be: gen newvaremployed
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
