Hi
I want to drop all observations which don't have date in 2 string variables:
for example
if A = empty and B=empty --> drop
if A or B != empty --> dont drop
I tried drop if A == "" and B== "" but it states a invalid and operation
i cant include a dataex because the characters in one of the variables are too long.
Thanks in advance!
Related Posts with dropping observations if 2 strings are empty
estat classification after logitThere has been some problems getting correct/usable results from -estat classification-, eg: https:…
do we have user-command like reghdfe for logit or probit models?Thanks for your infomation! …
Collapse by partial groupI have a big dataset of county level demographics "County Statename Year Agegroup" where agegroup …
Speeding up random parameter mixed-logit estimation (cmxtmixlogit) with large datasetDear Stata Users, I am wondering if anyone has a strategy to speed up the estimation of the cmxtmix…
Add a reference lineHi, Please, could someone share with me an example of code with "TRAJ" command, specifically the po…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if 2 strings are empty
Post a Comment