Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Extracting the varname of e(wexp) after regress ? Another question more


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Extracting the varname of e(wexp) after regress ? Another question more
Date   Mon, 14 Nov 2005 17:40:36 -0000

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 
n.j.cox@durham.ac.uk 

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/



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