Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Svyset storage of variables


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Svyset storage of variables
Date   Thu, 08 Feb 2007 12:49:56 -0500

At 12:26 PM 2/8/2007, Joshua H Tamayo-Sarver wrote:
I am having difficulty figuring out where svyset stores the names of the
variables describing the survey structure so that I can access them from ado
files.  Any ideas?

Thanks,
---Josh
Is this what you want?

. webuse nhanes2f

. svyset

pweight: finalwgt
VCE: linearized
Strata 1: stratid
SU 1: psuid
FPC 1: <zero>

. return list

scalars:
r(stages) = 1

macros:
r(settings) : "psuid [pweight= finalwgt], strata(stratid) vce(linearized)"
r(vce) : "linearized"
r(strata1) : "stratid"
r(wvar) : "finalwgt"
r(wexp) : "= finalwgt"
r(wtype) : "pweight"
r(su1) : "psuid"



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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