Statalist The Stata Listserver


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

Re: st: svyintreg vs. intreg with pweights


From   [email protected] (Jeff Pitblado, StataCorp LP)
To   [email protected]
Subject   Re: st: svyintreg vs. intreg with pweights
Date   Thu, 26 Apr 2007 16:27:00 -0500

Sergiy Radyakin <[email protected]> wrote in that -svyintreg- is
reporting an 'initial values invalid' error message when specified with a
mean-only model. Richard Williams <[email protected]> replied with
some suggestions for getting around the problem.

> I have survey data on incomes (in brackets) and pweights are provided as 
> well.
> I would like to find the average income. To do this, I regress the interval 
> ends on a constant using -intreg-
> 
> This command works:
> 
>     intreg inc1 inc2 [pw=my_weight_variable]
> 
> This syntax does not work:
> 
>     version 8
>     svyset [pw=my_weight_variable]
>     svyintreg inc1 inc2
> 
> (fails after -svyintreg- with the error message "initial values invalid").
> There are no zero or missing weights (if it is of any importance).

Sergiy found a bug in -svyintreg-'s initial values logic.

-svyintreg- will be fixed in the next ado-file update.

--Jeff
[email protected]
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index