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

st: genhw (bug?)


From   "Andrea Baccarelli" <andreastata5@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: genhw (bug?)
Date   Thu, 20 Feb 2003 00:11:53 +0000

I am using the command genhw in Stata 7.0 to estimate the allelic frequency and Hardy-Weinberg Equilibrium in a dataset with multiple single nucleotide polymorphisms (SNPs).

I created two variables for each genotype (i.e.: a1 and a2) as following:
Genotype wt: a1==0, a2==0
Genotype heterozigous: a1==1, a2==0
Genotype homozigous: a1==1, a2==1

The command works generally fine.
Unfortunately I, have several SNPs without homozigous genotypes (i.e.: a2 is always==0). For these SNPs the command do not work.
I receive the following output:

',' found where integer expected
r(7);

Note that when I use the actual numbers with the immediate command (genhwi), the command works just OK.
I could input the genotype frequencies one by one, but it will take a lot of time. Does anyone have any idea how to solve this problem?
Thanks a lot,

Andrea Baccarelli,
NCI, Bethesda







_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

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