Bookmark and Share

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


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

st: probability weights with stpm


From   Anna-Maija Tolppanen <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: probability weights with stpm
Date   Wed, 27 Jun 2012 09:08:39 +0300

I am analysing an interval-censored data set and would want to apply probability weights. The help file in http://fmwww.bc.edu/repec/bocode/s/stpm.html says that weighting can be applied (on the stset line as usual). However when I try to run the following lines

stset survtime [pweight=ipw], failure(dem) id(id)
stpm sex city age,  scale(hazard) left(demlv) df(1)

I get the 'weights not supported' message. I am probably making a very obvious mistake and would be grateful if a more experienced user could point it out. Weights are supported by stpm2, but interval censoring is not (http://www.stata.com/statalist/archive/2011-11/msg01211.html), so stpm2 is probably not an option?

Cheers, Anna


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index