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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: qui { svy : } bug?


From   jpitblado@stata.com (Jeff Pitblado, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: qui { svy : } bug?
Date   Thu, 10 Nov 2011 16:44:33 -0600

Jeph Herrin <stata@spandrel.net> is trying to work with the -r(table)- matrix
result after -svy: mean- when run -quietly-:

> I'm running 64-bit StataMP 12, updated, on Win 7.
> 
> Here's a program:
> 
> ****** bug? *********
>   u http://www.stata-press.com/data/r12/stage5a, clear
>   svyset su1 [pweight=pw], strata(strata) fpc(fpc1)
> 
>   svy : mean x1
>   matrix list r(table)        // fine
> 
>   qui svy : mean x1
>   matrix list r(table)        // error!
> **********************
> 
> The last line produces an error. It seems that -qui- applied
> to svy: suppresses all of the returned macros, which is a big nusiance.

To be clear, we assume that Jeph has not changed the default for
'set coeftabresults', see -help set coeftabresults-.  The default behavior
is for estimation commands to store the coefficient table results in -r()-
even when they are run quietly.

Jeph discovered that -svy: mean- is not storing this information in -r()- even
when it should.

This is unintended behavior and isolated to

	mean
	proportion
	ratio
	total

with or without the -svy:- prefix.

We hope to have this fixed in a future ado-file update.

--Jeff
jpitblado@stata.com
*
*   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