Hello again
On this project, I have some variables and two of them are location. The first one identifies the location (1,2,3) and when selected 3, the other variable (location_extra) should be some string. The point is, a lot of locations are 1 and 2 and only a few are 3. I want to list all missing variables. I could do
.
When I do this, my output is spammed with rows containing only the location_extra missing. So I did:
(usf and interid and identifiers variables I have) (I know, i could have dropped location_extra just to list them)
Then my output is as follows:
That log came with like 1000 lines and only 32 tables on them.
Is there a way to not print those empty stuff, getting only the tables so my log doesn't have a lot of unuseful info?
George
On this project, I have some variables and two of them are location. The first one identifies the location (1,2,3) and when selected 3, the other variable (location_extra) should be some string. The point is, a lot of locations are 1 and 2 and only a few are 3. I want to list all missing variables. I could do
Code:
list if missing()
When I do this, my output is spammed with rows containing only the location_extra missing. So I did:
Code:
foreach var of varlist id-lugar nccdtreat-recusa01{ //that excluded my location_extra variable only by usf interid: list if missing(`var') }
Then my output is as follows:
Code:
... -> usf = 06, interid = 33 ------------------------------------------------------------------------------------------------ -> usf = 06, interid = 41 ------------------------------------------------------------------------------------------------ -> usf = 06, interid = 42 ------------------------------------------------------------------------------------------------ -> usf = 06, interid = 91 ------------------------------------------------------------------------------------------------ -> usf = 07, interid = 17 ...
Is there a way to not print those empty stuff, getting only the tables so my log doesn't have a lot of unuseful info?
George
Comment