Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72762

displaying the exact observation with problematic value

$
0
0
I am facing the common problem of appending datasets which contains variable with diferent type.
Before using the -force- option, I would like to see the exact observation which has the numeric variable as a string one. I already know that the problem is limited to only one observation, as shown below.

:
variable v12 is str9 in master but double in using data
    You could specify append's force option to ignore this string/numeric mismatch.  The using
    variable would then be treated as if it contained "".
r(106);

. count if missing(real(v12)) & !missing(v12)
    1
I tried as below, but it did not know
:
. display _n if missing(real(v12)) & !missing(v12)

if not found
r(111);

Viewing all articles
Browse latest Browse all 72762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>