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
Identifying periods of liberalization/restrictionDear Statalisters, I have a measure of capital account openness (ka), where 0 is open and 1 is clos…
try to create code boxhow to write code: Code: mixed age || state: …
Marginal effect analysishello I want to estimate the marginal effect of an independent variable, pp after a logistic regress…
Fixed effect vs Random EffectDear Statalist, I am running a two-way fixed effect model with IV estimation. I want to run a Hausm…
extract scoresHello, I hope someone can help me with this question. The sample dataset is as in the attachment. I'…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if 2 strings are empty
Post a Comment