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: AW: AW: Artmenu fails to load in Stata 11


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: AW: Artmenu fails to load in Stata 11
Date   Tue, 18 May 2010 18:49:38 +0200

<> 

This will get Jonathan reasonably close to his graph:


*************
stpower logrank 0.7,n(100 250 500)  /* 
*/ hratio(0.1(0.01)0.9) saving(mypower, replace)
u mypower, clear 
twoway (line power hr if n==100, lcolor(blue))  /* 
*/ (line power hr if n==250, lcolor(red))  /* 
*/ (line power hr if n==500, lcolor(navy)), yline(.8) /* 
*/  xtitle(Hypothesized effect size  /* 
*/ (hazard ratio of experimentals vs. controls))  /* 
*/ xtitle(, size(medlarge)) xlabel(#8)  /* 
*/ title(Power curves for log-rank test)  /* 
*/ subtitle((for survival curves of experimental vs. standard treatment))
/* 
*/ caption("Assumptions: alpha=0.05 (two-sided); equal number of subjects to
be assigned to each group;"  /* 
*/ "70% of patients in the control group survive to end of study",
size(small)  /* 
*/ justification(center)) legend(off)  /* 
*/ text(.65 .4 "N = 100") text(.65 .6 "N = 250") /* 
*/  text(.65 .75 "N = 500") ytit(Power, size(medlarge))
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 18. Mai 2010 18:33
An: [email protected]
Betreff: st: AW: Artmenu fails to load in Stata 11


<> 

" I am trying to reproduce the graph displayed in:

http://www.stata.com/stata10/poweranalysis.html

I'm able to reproduce the basic data using  "stpower logrank 0.7,
n(100 250 500) hratio(0.1(0.01)0.9) saving(mypower) "--

However I cannot figure the correct syntax to produce the graph."





Let this code inspire you:



*************
stpower logrank 0.7,n(100 250 500) hratio(0.1(0.01)0.9) saving(mypower,
replace)
u mypower, clear 
twoway (line power hr if n==100) (line power hr if n==250) (line power hr if
n==500), yline(.8)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Jonathan Kaplan
Gesendet: Dienstag, 18. Mai 2010 16:23
An: [email protected]
Betreff: st: Artmenu fails to load in Stata 11

Two sample size questions:

1. I'm trying to load the artmenu ( available from Stata journal )
using Stata 11 latest update on a windows PC, butr no usermenu is
displayed- even after the following message:

artmenu on

ART - ANALYSIS OF RESOURCES FOR TRIALS        (version 1.0.4, 13 January
2005)
----------------------------------------------------------------------------
--
A sample size program by Patrick Royston, Abdel Babiker & Friederike
Barthel,
MRC Clinical Trials Unit, London NW1 2DA, UK.
----------------------------------------------------------------------------
--

ART menu turned on.  The User menu has been changed.

Can anybody confirm this behaviour?

2. I am trying to reproduce the graph displayed in:

http://www.stata.com/stata10/poweranalysis.html

I'm able to reproduce the basic data using  "stpower logrank 0.7,
n(100 250 500) hratio(0.1(0.01)0.9) saving(mypower) "--

However I cannot figure the correct syntax to produce the graph.

thanks

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