Statalist


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

AW: st: AW: compare files, vars only


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Nick Cox
Gesendet: Freitag, 20. Februar 2009 15:30
An: [email protected]
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 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index