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.

Et nous <strong>de</strong>mandons 2 tracés et non plus un.<br />

Proc format; value $intitule<br />

"SexeE" = "Sexe"<br />

"sitfam" = "Situation familiale actuelle"<br />

"MPROLOC" = "Logement"<br />

"lienmig" = "Lien à la migration"<br />

"LT1AMI1" = "Relation avec le voisinage"<br />

"GRFAM" = "Présence <strong>de</strong> la famille dans la région"<br />

"echstab_tot" = "Trajectoire"<br />

"trajloc" = "Localisation <strong>de</strong> la trajectoire"<br />

"echdouvC" = "Echelle d'appartenance"<br />

"agepop" = "Age"<br />

"_Intercept" = " Constante"<br />

; Run;<br />

libname tpl "D:\MY <strong>Sas</strong> Files\tpl";<br />

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

*pour ne pas écrire dans <strong>Sas</strong>user.templat!;<br />

ods graphics/ height=20cm width=13cm ;<br />

ods listing style=listing image_dpi=200 ;<br />

title "Probabilités estimées en %";<br />

proc sgplot data=grapsan(where=(variable ne "_Intercept"))<br />

tmplout="d:\notes\test\sgplotseriescat.sas";<br />

refline 22.7 / axis=x;<br />

series y=mod x=ppct /lineattrs=(pattern=dot) break ;<br />

scatter y=mod x=ppct / markerattrs=(symbol=square);<br />

xaxis values=(0 to 50 by 5) valueattrs=(size=6) grid label="en %";<br />

yaxis type=discrete valueattrs=(size=6);<br />

run;<br />

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