Statalist


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

st: genhw error


From   "Tony Black" <[email protected]>
To   <[email protected]>
Subject   st: genhw error
Date   Mon, 22 Oct 2007 13:52:26 -0700

I am having difficulty with the "genhw" command
With this simple dataset:

allele1	allele2
A		A
A		G
A		A
A		G
A		A
A		A

I issue the following command:

. genhw   allele1 allele2

and get this result (in red)

',' found where integer expected

I set trace on and it seems to be blowing up in "genhwi" -- here is a snip
from the trace file

  - genhwi `vars', `labopt' `binvar'
  = genhwi 4  2, label(AA  AG) 
 
----------------------------------------------------------------------------
------------------- begin genhwi ---
    - version 6
    - qui {
    - gettoken AA 0 : 0, parse(" ,")
    - gettoken Aa 0 : 0, parse(" ,")
    - gettoken aa 0 : 0, parse(" ,")
    - confirm integer number `AA'
    = confirm integer number 4
    - confirm integer number `Aa'
    = confirm integer number 2
    - confirm integer number `aa'
    = confirm integer number ,
',' found where integer expected


*
*   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