Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started