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: probability weights with stpm


From   Steve Samuels <sjsamuels@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: probability weights with stpm
Date   Wed, 27 Jun 2012 14:47:43 -0400


It's working for me.  Do you have the latest version? Type "which stpm" to find out.   Mine is, Version 1.3.4, 04sep2009.  I didn't get it from SSC, but rather from the latest entry I found with "search stpm, all".  Type the command:

*********************************************************************
net describe stpm, from(http://www.homepages.ucl.ac.uk/~ucakjpr/stata)
*********************************************************************

and go from there.

Steve
sjsamuels@gmail.com


On Jun 27, 2012, at 2:08 AM, Anna-Maija Tolppanen wrote:

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/


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