Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Multiple paired ttests

From   "Kaaresen Per Ivar" <>
To   "Stataliste" <>
Subject   st: Multiple paired ttests
Date   Thu, 9 Sep 2004 00:04:43 +0200

Ikke sensitiv - Please ignore this text - it is due to inhouse security

I have quite a number of variables named x1mm x2mm x3mm.... and x1mf
x2mf x3mf....

Now I want to run multiple ttest:

ttest	X1mm==x1mf
ttest x2mm==x2mf 

and so forth.

How can I do this without typing each command over and over again?

I suppose some looping as:

foreach v of varlist x1mm-xnmm {
	ttest `v'== (but what here??)


Thank you in advance for your help


Per Ivar Kaaresen MD
University of Tromsoe

*   For searches and help try:

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