Statalist The Stata Listserver


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

Re: st: plot using -stphtest- answer and new puzzle


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: plot using -stphtest- answer and new puzzle
Date   Sun, 8 Oct 2006 10:14:14 +0100 (BST)

Enzo:
You are right (see example, or -viewsource stphtest.ado-).
Thanks,
Maarten

*---------- begin example --------
sysuse cancer, clear
stset studytime, failure(died)
xi: stcox i.drug age, schoenfeld(sch*) scaledsch(sc*)
lowess sc3 _t, ytitle("scaled Schoenfeld - age at interview") name(a)
mean noweight
estat phtest, plot(age) ytitle("scaled Schoenfeld - age at interview")
*---------- end example ----------

--- Enzo Coviello <[email protected]> wrote:
> I believe that estat phtest, plot(varname) internally invokes :
> 
> lowess ... , mean noweight
> 
> i.e. running mean instead of running line and no wheigts.
> 
> Often the lowess plot of scaled Shoenf residuals "by hand" looks 
> better than the default plot.


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" � The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html
*
*   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