Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Several ttests


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Several ttests
Date   Thu, 28 Dec 2006 23:19:39 +0000 (GMT)

no, you put two commands on the same line, it should be:

foreach var of varlist boardcomp compensation {
di "`var'" 
 ttest `var', by(pw)
>   3. }

--- Claude Francoeur <[email protected]> wrote:

> There seem to be a problem with the quote marks?
> 
> foreach var of varlist boardcomp compensation {
>   2. di "`var'" ttest `var', by(pw)
>   3. }
> boardcompttest not found
> r(111);
> 
> end of do-file
> r(111);
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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