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

Re: st: get est.prop from svyprop

From   "R.E. De Hoyos" <[email protected]>
To   <[email protected]>
Subject   Re: st: get est.prop from svyprop
Date   Wed, 4 May 2005 16:36:09 +0100

Just to complement Nick's answer. After svymean the results are stored in e(b) and you can save them in a matrix for further analysis:

tab myvar, ven(myvar_d)
svymean myvar_d*
mat prop=e(b)

Later you can write -prop[x,y]- to use a particular proportion. You can also save other results like the SE and deff statistic. Type -ereturn list- after -svymean- to see the macros saved in Stata's temp memory.


----- Original Message ----- From: "Nick Winter" <[email protected]>
To: <[email protected]>
Sent: Wednesday, May 04, 2005 4:08 PM
Subject: Re: st: get est.prop from svyprop

In Stata 9, "svy: proportion" is e-class and returns the results in e(b)

In Stata 8, you can create a set of dummy variables for the categories, and use -svymean- to get teh proportions:

. tab myvar, gen(myvar_)
. svymean myvar_*

--Nick Winter

At 03:21 PM 5/4/2005 +0100, you wrote:

Hello all,

after using the svyprop command I would like to use the estimated proportions
from svyprop for further analysis/modeling. I couldn't find a possibility to
store the results in an new data file and I am wondering if I missed something
out. As I have many by groups writing down the results from the screen and
input them into a new file is not really an option for me. Does anyone have a
suggestion how to get on here or any other possibilities/commands which would
allow me to do this job?

Thank you,
* For searches and help try:
Nicholas Winter                           607.255.8819 t
Assistant Professor                       607.255.4530 f
Department of Government              [email protected] e
308 White Hall   w
Cornell University
Ithaca, NY 14853-4601

*   For searches and help try:

*   For searches and help try:

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