In which case, you probably need to access the information left behind
in the matrices "e(Col)" and "e(Row)" after -svy: tab-.
******************************
clear
use http://www.stata-press.com/data/r11/highschool
svy: tab sex race if(race!=2)
di "`:colnames e(Col)'"
di "`:colnames e(Row)'"
******************************
T
2010/1/29 Jason Ferris <[email protected]>:
> Dear Eric,
> I appreciate your response which I found very insightful - including the
> labutil package.
> However, calling on the macros below after running the svy command
>
> clear
> use http://www.stata-press.com/data/r11/highschool
> svy: tab sex race if race~=2
>
> di "`e(colvlab)'"
> di "`e(rowvlab)'"
>
> doesn't address my dilemma. In the example the condition race~=2 means
> that (race==black) is dropped from the tabulation and the resulting 2x2
> table displayed has only "white" and "other" as the two categories
> included. When you call the e(Prop) matrix information (from ereturn
> list) you are presented with a 2x2 cell proportion of the matrix.
>
> I am wanting to use this matrix [e(Prop)] in other code but would also
> like the matching label names that was used in the model. Referring to
> `e(colvlab)' doesn't do this for me - as it uses the information in the
> labelbook of all value labels - not only the value labels that are in
> the table.
>
> Further advise would be appreciate... my apologies that this thread
> doesn't continue with the previously posted one (I only get daily stata
> postings).
>
> Jason
>
> ------------------------------------------
> DISCLAIMER: This message (including any attachments) is intended solely for the addressee(s) named and may contain confidential or privileged information.
> If you are not the intended recipient, please delete it and notify the sender.
> Views expressed in this message are those of the individual sender,and are not necessarily the views of the Turning Point Alcohol and Drug Centre (ABN: 68 223 819 017).
>
> <a href="http://www.turningpoint.org.au">Turning Point Alcohol and Drug Centre</a>
>
> Although this message and any attachments have been scanned for viruses by 'Trend Micro InterScan' at the time of sending, you are advised to rescan on receipt.
>
> The whole or parts of this email may be subject to copyright of Turning Point Alcohol and Drug Centre (ABN: 68 223 819 017), and/or third parties.
> You can only re-transmit, distribute or use the material if you are authorised to do so.
>
> Please consider the environment before printing this email or attachments.
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/