local wvar = substr("`=e(wexp)'",3,.)
di "`wvar'"
list `wvar'
> Wolfgang Langer
> I have written a small program to calculate the
> goodness-of-fit-chi2-test after estimating a WLS -regression
> modell for
> tabulated data (GSK-approach). How can I extract the varname from the
> e(wexp) container to use it in my program? Typing "dis
> e(wexp)" I get
> only the expression "=var name of weighting variable" but not the
> varnme itself. I need this to formulate my program gofchi2
> mor generally.
-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the
attorney-client or other legal privileges, and/or proprietary non-
public information. If you are not an intended recipient of this
message or an authorized assistant to an intended recipient, please
notify the sender by replying to this message and then delete it from
your system. Use, dissemination, distribution, or reproduction of this
message and/or any of its attachments (if any) by unintended recipients
is not authorized and may be unlawful.
*
* 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/