Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: tabulate, summarize() for svy data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: tabulate, summarize() for svy data
Date   Fri, 19 Mar 2010 09:20:50 -0000

Glad you got useful help. 

On the other side, I don't think we can know precisely what you have looked at unless you say. Thus "I could not find it in the help file" conveys no detail. "I looked at the help for -svy: tabulate oneway- and -svy: tabulate twoway- and neither seems to be what I want" would have prevented my reply, "not helpful" as it turned out to be.

Nick 
n.j.cox@durham.ac.uk 

Ricardo Ovaldia

Thank you Steve and Tim. Nicks's response was not helpful at all. I had already search the summarized commands. I really wanted the -summarize()- option.

--- On Thu, 3/18/10, Steve Samuels <sjsamuels@gmail.com> wrote:

> From: Steve Samuels <sjsamuels@gmail.com>

> 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.
 
> **************************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

*
*   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/


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