24.04.2014 Views

Pratique de Sas Windows ...9.3 Volume 2 - Ined

Pratique de Sas Windows ...9.3 Volume 2 - Ined

Pratique de Sas Windows ...9.3 Volume 2 - Ined

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Avec notre template retravaillé rendu à nouveau actif suite à<br />

ods path(prepend) tpl.modtpl(update);<br />

cela donne<br />

Ayant donc récupéré une nouvelle table avec une nouvelle variable tatrisk, nous pouvons nous risquer à<br />

nouveau dans un Sgplot en rajoutant un scatter inspiré <strong>de</strong> l’exemple 12.4 page 290 <strong>de</strong> l’ouvrage <strong>de</strong> référence<br />

petit livre rouge « Statistical Graphics Procedures by Examples Effective Graphs using <strong>Sas</strong> » et donc les exemples<br />

sont aussi à votre disposition sur la page : http://support.sas.com/pubscat/book<strong>de</strong>tails.jsp?catid=1&pc=63855<br />

proc format; value coha 1= "Femmes 92-96" 2="Hommes 92-96"; run;<br />

ods graphics /reset antialiasmax=1000 width=15 cm ;<br />

proc sgplot data=muco.captbook ;<br />

format stratumnum coha.;<br />

step x=time y=survival /group=stratumnum lineattrs=(pattern=solid) ;<br />

scatter x=tatrisk y=stratumnum /markerchar=atrisk markercharattrs=(size=3)<br />

y2axis group=stratumnum;<br />

scatter x=time y=censored /markerattrs=(symbol=plus) name='Censored';<br />

keylegend<br />

/location=insi<strong>de</strong> across=2;<br />

refline 0;<br />

yaxis min=0 offsetmin=0.2 valueattrs=(size=4) ;<br />

y2axis offsetmax=0.83 display=(nolabel noticks) valueattrs=(size=4) values=(1 2);<br />

run;<br />

136 <strong>Pratique</strong> <strong>de</strong> <strong>Sas</strong> windows ….93 <strong>Volume</strong> 2 et Coll.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!