Statalist


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

AW: st: AW: compare files, vars only


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: AW: compare files, vars only
Date   Fri, 20 Feb 2009 15:58:54 +0100

<> 

We can change that with your very own -ssc d tuples-, though....

*************
sysuse auto, clear
drop mpg
save auto100, replace
drop gear
save auto101, replace
drop trunk
save auto102, replace
tuples auto auto100 auto101 auto102, max(2)

loc omitted 0

forval i = 1/`ntuples' {
	loc mycount: word count `tuple`i''
	if `mycount' ==2{
		di _n in red "Now we are comparing `tuple`i''"
		cfvars `tuple`i''
	}
	else{
		loc ++omitted
	}
}

di in red "Omitted `omitted' tuples"
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nick Cox
Gesendet: Freitag, 20. Februar 2009 15:30
An: statalist@hsphsun2.harvard.edu
Betreff: RE: st: AW: compare files, vars only

No; not all, as (e.g.) Austin touched on the question of comparing two
_or more_ datasets, not something I wanted to do. 

Nick 
n.j.cox@durham.ac.uk 

Martin Weiss

Sorry about that! Let me check whether Nick has superseded all our
discussions yesterday with his new package...


*
*   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