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
LR test mixed results, any advice on what to do?Hello everyone, I am very new here and a very new user of Stata. I am currently in my final year in…
Two new programs, -rqrs- and -which_version-, available from SSCThanks, as always to Kit Baum, two new programs, rqrs and which_version, are available for download …
Estimates Restore with Lasso - "no observations" errorHi everyone, I am trying to to in-sample and out of sample prediction with lasso. The following step…
margins, eydx after logitHi, I am working with a logit model. I am interested in the percentage change in the probability of…
Data of a groupHello, I have a data with normal firms and zombie firms. Both groups have capital. But I want to ge…
Subscribe to:
Post Comments (Atom)
0 Response to dropping observations if 2 strings are empty
Post a Comment