Question:
unemployed = 1 if a person is unemployed, 0 else. Create this variable yourself. Assume that everyone with earnings > 0 is employed.
Can you please write a code for it? I am quite new to STATA and I need your help!
generate unemployed=.
if salary >0 {
replace unemployed = 0
}
else if salary <1 {
replace unemployed = 1
}
this was my code and I know its completely wrong
unemployed = 1 if a person is unemployed, 0 else. Create this variable yourself. Assume that everyone with earnings > 0 is employed.
Can you please write a code for it? I am quite new to STATA and I need your help!
generate unemployed=.
if salary >0 {
replace unemployed = 0
}
else if salary <1 {
replace unemployed = 1
}
this was my code and I know its completely wrong
Comment