[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: attempting to return the 'rstub' 'cstub' from svy: tab

From   "Jason Ferris" <[email protected]>
To   <[email protected]>
Subject   Re: st: attempting to return the 'rstub' 'cstub' from svy: tab
Date   Fri, 29 Jan 2010 16:48:49 +1100

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

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


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="";>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:

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