I want to delete observations that have missing data for a particular variable but stata does not recognize the empty cells as missing when I use the command:
drop if fishing_site==" "
so, I thought it might be a problem with spaces so I tried trimming them but it did not make any changes and still not recognizing missings.
What do I need to do?
Related Posts with stata doesn't recognize missings in string variable
I have a problem with reshaping my dataHi everyone! I have data that after changing it from Long to Wide looks like this: ID Fullscore1 …
Error with tab2xlHi, I am using tab2xl command in Stata 15 and would want to save the excel file using today's date.…
Subinstr() returns "invalid syntax" within foreach loopHi, I've tried to run this code multiple times with many adjustments, I also tried the solutions to…
How to jump out a forvalue loop after finding a specific value ?cd "C:\Users\GagaLee\Desktop\ga" local ff : dir . files "*.dta" dis `"`ff'"' mat ga=J(48,2,.) local…
RboundsHi, I have conducted propensity score matching using working hours as my treatment variable and the…
Subscribe to:
Post Comments (Atom)
0 Response to stata doesn't recognize missings in string variable
Post a Comment