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 <>
Subject   Re: st: plot using -stphtest- answer and new puzzle
Date   Sun, 8 Oct 2006 10:14:14 +0100 (BST)

You are right (see example, or -viewsource stphtest.ado-).

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

Try the all-new Yahoo! Mail. "The New Version is radically easier to use"  The Wall Street Journal
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index