Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: AW: RE: cf output id and not obs


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: AW: RE: cf output id and not obs
Date   Tue, 17 Nov 2009 09:58:21 +0100

<> 

" Code 9: I was confused why it looks like an error code..."


This is what you get when making false statements, so the "error" lies in
your assertion that the two files are equal:


*************
assert 5==4
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Kaulisch, Marc
Gesendet: Dienstag, 17. November 2009 09:44
An: statalist@hsphsun2.harvard.edu
Betreff: st: AW: RE: cf output id and not obs

Thanks. I also see cf3 now...

Code 9: I was confused why it looks like an error code...

Marc 

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Martin Weiss
Gesendet: Montag, 16. November 2009 20:25
An: statalist@hsphsun2.harvard.edu
Betreff: st: RE: cf output id and not obs


<>

Also note -ssc d cf2-:

*******
capt which cf2
if _rc ssc inst cf2

sysuse auto, clear
replace mpg=3 in 3
tempfile temp
save `temp', replace

sysuse auto, clear
cf2 _all using `temp', verbose
*******


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Kaulisch, Marc
Sent: Montag, 16. November 2009 19:52
To: statalist@hsphsun2.harvard.edu
Subject: st: cf output id and not obs

I would like to use the cf command to reproduce changes in the dataset done
manually.
This command works fine in general.

. cf _all using "data.dta", all verbose

The output looks like
"ep15BN15_4:  1 mismatches
                   obs  265. 2009 in master; . in using"

I would like to get an output that is not giving out the number of
observation but the respective id (stored in var "id"). Of course I could do
a . display id[265]

But with hundreds of changes this is rather an enourmous task.

Any ideas?

P.S.: I am confused to get an error message r(9) - is that the correct
behaviour? The output looks good...

Thanks


Marc


iFQ
Institut für Forschungsinformation und Qualitätssicherung Godesberger Allee
90
53175 Bonn, Germany
Tel.: *49 - 228 - 9 72 73 - 25
Fax: *49 - 228 - 9 72 73 - 49
E-mail: kaulisch@forschungsinfo.de
www.forschungsinfo.de


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index