Statalist


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

Re: st: RE: saving plot output from estat phtest


From   moleps islon <moleps2@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: saving plot output from estat phtest
Date   Sat, 8 Aug 2009 15:03:39 +0200

I appreciate it...

M


On Sat, Aug 8, 2009 at 2:45 PM, Martin Weiss<martin.weiss1@gmx.de> wrote:
>
> <>
>
> ***
>
> webuse leukemia, clear
>
> stset weeks, failure(relapse)
>
> stcox treatment2 wbc2 wbc3
>
> foreach covariate of varlist wbc2-wbc3{
>        estat phtest, rank plot(`covariate')/*
>  */ note("Covariate: `covariate'")/*
>  */ nodraw
>        gr save `covariate', replace
> }
>
> gr combine wbc2.gph wbc3.gph
> ***
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of moleps islon
> Sent: Samstag, 8. August 2009 11:57
> To: statalist@hsphsun2.harvard.edu
> Subject: st: saving plot output from estat phtest
>
> I cant find an option in the-estat phtest, plot(x)- command to save
> the plot. It would be most wellcome in writing loops over a local and
> generating a combined graph of all the different PH assumption plots
> in the cox regression.
>
>
> local r x y z u
>
> stcox `r', sca(sca*) sch(sch*)
> estat phtest, det
>
> foreach var in `r' {
>         quietly estat phtest,plot(`r') ----saving `var'---
>        }
> graph combine `r'
>
>
> Any ideas?
>
> regards,
> M
> *
> *   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/
>

*
*   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   |   What's new   |   Site index