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

st: Problem with genhw...

From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   st: Problem with genhw...
Date   Thu, 22 Aug 2002 11:59:55 +0100

Dear all,

I'm not sure if this is a problem with the -genhw- command or the 
way in which I'm trying to use it, but would be grateful for any 
suggestions as to whats going on.

I have a load of genotype data for a whole genome screen and 
simply want to test each locus for Hardy-Weinberg equilibrium 
using the -genhw- command.  Since there are 370 markers I 
thought I'd use the following to achieve this...

tokenize d*
while "`1'" ~= ""{
	genhw `1' `2'
	mac shift 2

However upon execution I'm told that 

too many variables specified

genhw works fine if I type in the variable names, but this is very 
repetative (boring and time consuming).

Can anyone suggest why this might be happening.

Thanks in advance for any help


Neil Shephard
Genetics Statistician
ARC Epidemiology Unit, University of Manchester
[email protected]
[email protected]

"Contrariwise, if it was so, it might be; and if it
were so it would be; but as it isn't, it ain't. That's
logic" - Tweedledee (Alice Through the Looking Glass)
*   For searches and help try:

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