Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

RE: st: probable error, "weights invalid" using stset

From   "Brown, Elizabeth" <>
To   "" <>
Subject   RE: st: probable error, "weights invalid" using stset
Date   Tue, 1 Nov 2011 14:16:17 +0000

Hi Austin,  and thank you for your reply. Just a few follow-on questions; 1) Why do you recommend using first-observed and not last-observed weight? If weights adjust for attrition, wouldn't I want to use the last-observed weight for an individual, just prior to their leaving the sample? The last observed weight seems more likely to account for individual probability of leaving the sample, no? ; 2) As a clarification, you're suggesting that weights would be identified as probable error if they were 0 or missing - are there any other reasons you can think of?; 3) Last, thanks for the link to the Jenkins primer on survival analysis -- I've been traipsing all over these pages. Very helpful, thanks! 

-----Original Message-----
From: [] On Behalf Of Austin Nichols
Sent: Monday, October 31, 2011 3:21 PM
Subject: Re: st: probable error, "weights invalid" using stset

Elizabeth <>:
Use first-observed weights, not last, and make sure none are zero or missing. Or spend some more effort to define exactly what population you want your analysis sample to be representative of. Also note 2009 PSID data is available.  Also, you have discrete time data, not continuous time data--people are poor or not in one year, not at each point in time, at least using US definitions.  So use a discrete time hazard model; see e.g.

On Mon, Oct 31, 2011 at 2:51 PM, Brown, Elizabeth <> wrote:
> Dear all,
> I encountered a PROBABLE ERROR using stset that I'm unsure how to investigate/resolve. After stset, I get the following output, with a probable error with respect to 219 "weights invalid". What would cause weights to be invalid? How can I fix this?
> I'm using data from the Panel Study of Income Dynamics to examine multiple poverty transitions of families over the 1968 - 2007 period.
> With respect to how the weights were prepared, I first: 1) replaced any missing family weight values with family_weight[_n-1], and 2) made weights consistent within id by replacing  family weight with the last observed family weight value. In previous attempts to stset the data using weights, stata complained when weights were inconsistent within id.

*   For searches and help try:


This email message is for the sole use of the intended recipient(s) and
may contain confidential information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index