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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Après tous ces essais, je dois nettoyer et astiquer l’entrepôt utilisé : <strong>Sas</strong>user.template :<br />

Au karcher, il ne restera rien <strong>de</strong> l’ancien :<br />

ods path <strong>Sas</strong>help.tmplmst(read);<br />

proc datasets library=<strong>Sas</strong>user;<br />

<strong>de</strong>lete templat(memtype=itemstor);<br />

run;<br />

ods path reset;<br />

Au savon noir bio, il restera ce que vous n’avez pas enlevé ou déplacé par sauvegar<strong>de</strong> individuelle, élément par<br />

élément.<br />

Proc template ;<br />

Delete BoxG /store=<strong>Sas</strong>user.templat ;Delete … ;<br />

Run;<br />

3.8.2 La macro %modstyle( )<br />

Warren Kuhfeld a présenté une macro rédigée par Robert E. Derr qui simplifie le changement <strong>de</strong> style <strong>de</strong>s<br />

graphiques statistiques http://support.sas.com/kb/37/addl/fusion_37508_1_modstyle.sas.txt<br />

Sa syntaxe et son usage sont présentés dans « Modifying ODS Statistical Graphics Templates in <strong>Sas</strong> ® 9.2 »<br />

page 29-30 http://support.sas.com/rnd/app/ODSGraphics/papers/modtmplt.pdf .<br />

Cette macro vise à changer en fait les éléments <strong>de</strong> style (graphdata1-graphdatan) qui contrôlent les variations <strong>de</strong><br />

groupe.<br />

Les paramètres sont :<br />

Parent= styleparent Name= nomdunouveaustyle Type= LMbyC| Clm|CbyLm|CbyLbyM|<br />

LbyMbyC…. Colors= Display= Fillcolors= Linestyles= Markers= Numberofgroups=<br />

Illustration modifiée empruntée à<br />

https://communities.sas.com/thread/35707?start=15&tstart=0<br />

data test;<br />

input trt temp value sd sdlo sdhi;<br />

cards;<br />

1 0 0 0 0 0<br />

1 0.25 299 61.4 237.6 360.4<br />

1 0.5 428 66.5 361.5 494.5<br />

1 1 581 64.4 516.6 645.4<br />

1 2 776 142 634 918<br />

1 2.5 475 154 321 629<br />

1 3 355 105 250 460<br />

2 0 0 0 0 0<br />

2 0.25 765 167 598 932<br />

2 0.5 1020 180 840 1200<br />

2 1 1400 322 1078 1722<br />

2 2 1880 375 1505 2255<br />

2 2.5 1060 404 656 1464<br />

2 3 775 338 437 1113<br />

3 0 0 0 0 0<br />

3 0.25 2180 322 1858 2502<br />

3 0.5 3240 634 2606 3874<br />

3 1 4920 722 4198 5642<br />

3 2 6860 1610 5250 8470<br />

3 2.5 4400 1240 3160 5640<br />

3 3 3600 1200 2400 4800<br />

;<br />

run;<br />

proc sgplot data=test;<br />

xaxis label='Temperature' ;<br />

yaxis label="solicity" ;<br />

title ;<br />

series x = temp y = value / group=trt<br />

markerattrs=(size=9 color=black) ;<br />

scatter x = temp y = value / group=trt<br />

markerattrs=(size=9 color=black) ;<br />

run;<br />

196 <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!