Statalist The Stata Listserver


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

st: byindex variables


From   Fred Wolfe <fwolfe@arthritis-research.org>
To   statalist@hsphsun2.harvard.edu
Subject   st: byindex variables
Date   Mon, 24 Apr 2006 12:11:44 -0500

Dear Statalisters,

I hope this might be a simple question to someone. I can't seem to find the answer.

I have a program that is byable(recall). Suppose my byvariable is sex, taking on 3 levels: 0 female, 1 male, . missing. I can track in the program the iteration, 1, 2 or 3. However, what I want to do is to pick up the value of -sex- when each of the 3 iterations is being processed so that I can pull off the label and pass it to another programs. Is there a way to do this?

The output on the console is "-> sex = Male." The manual says the group header "will appear by default." Is there a way to access the group header information?

Thanks,

Fred

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125 Fax (316) 263-0761
fwolfe@arthritis-research.org


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