I have an occupation variable that has 25 categories such as professionals, sales, farmers, self-employed, etc. Although written with alphabet these are numeric. I want to drop data of some of the categories such as self-employed or House-maids, household worker. So I used the code (suppose var name c104)
drop if c104 == Self-employed
but showing
Self not found
r(111);
I also tried to recode
recode c104 (Managers Clarkes Farmers = 2 prof), gen(jobs) label(job status)
It also did not work. Any suggestions. I use STATA 13
Related Posts with Drop alphabetical category of a variable or recode as numeric
Create indicator variable within unbalanced panelHi Statalist I have an unbalanced panel & I would like to create an indicator variable based on…
How copy database only with variable codes into ExcelHello! Explain me please. I have a database. I need to copy the table only with the "value label" an…
How can I get theta for Inverse hyperbolic sine transformation by mle?Hi,everyone I want to use mle to estimate theta for Inverse hyperbolic sine transformation , I have …
PMG model in Stata 16 IChello guys, I a running a PMG model in Stata 16 IC on my MacBook. I have 41 countries and 13 variabl…
Multi level models and robust clustering of SEI am using multi level modelling for hiererchical survey data (students nested within schools nested…
Subscribe to:
Post Comments (Atom)
0 Response to Drop alphabetical category of a variable or recode as numeric
Post a Comment