I must be missing something here. What you
can extract here would seem to be exactly
what you specified in the first place.
Otherwise put, please give us a concrete example of what
you want. Referring to a commonly accessible dataset
helps greatly.
Nick
[email protected]
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 "=varname of weighting variable" but not the
> >> varname itself. I need this to formulate my program gofchi2 mor
> >> generally.
> Nick's strategy to extract the varname from the
> e(wexp)-container works
> very fine, but I need for further calculations the content of the
> variable - its values in a vector of 8 subpopulations. How can I get
> back form the string expression extracted out of e(wexp), the name of
> the variable used for weighting, to its vector?
*
* 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/