Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Ricardo Ovaldia <ovaldia@yahoo.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: tabulate, summarize() for svy data |
Date | Fri, 19 Mar 2010 06:34:53 -0700 (PDT) |
Steve, Why does your program use e(V_srssub) for the variance, instead of e(V) or e(V_srs). I cannot find any information either on the help or the manual about e(V_srssub) Thank you Ricardo Ricardo Ovaldia, MS Statistician Oklahoma City, OK --- On Thu, 3/18/10, Steve Samuels <sjsamuels@gmail.com> wrote: > From: Steve Samuels <sjsamuels@gmail.com> > Subject: Re: st: tabulate, summarize() for svy data > To: statalist@hsphsun2.harvard.edu > Date: Thursday, March 18, 2010, 3:25 PM > This code will reproduce all of the > results of -tabulate, sum- but the > group labels and, of course, the min and the max, > which cannot be > estimated from survey data. > > Steve > > **************************CODE > BEGINS************************** > webuse nhanes2, clear > svy: mean lead, over(diabetes) > > matrix define m = e(b) //mean (already shown) > matrix define V = e(V_srssub) // variances > matrix define nn = e(_N) //sample sizes > for the subpopulations > local kk = colsof(V) > forvalues i = 1/`kk'{ > di `i' " " el(m,1,`i') " " sqrt(el(V,`i',`i')) > " " el(nn,1,`i') > } > ***************************CODE > ENDS*************************** > > On Thu, Mar 18, 2010 at 11:11 AM, Ricardo Ovaldia <ovaldia@yahoo.com> > wrote: > > Is there a command similar to -tabulate, summarize()- > for survey data? > > I could not findit in the help file > > -- > Steven Samuels > sjsamuels@gmail.com > 18 Cantine's Island > Saugerties NY 12477 > USA > 845-246-0774 > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/