24.11.2014 Views

Pratique de Sas Windows 9.2... Volume 1 - Ined

Pratique de Sas Windows 9.2... Volume 1 - Ined

Pratique de Sas Windows 9.2... Volume 1 - 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.

7.4.3 Les autres logiciels statistiques<br />

Le cas particulier <strong>de</strong>s tables stata :<br />

libname arriv "d:\ined\duh";<br />

proc catalog catalog=work.formats kill;quit;<br />

proc import dbms=stata<br />

file="d:\ined\duh\final.dta"<br />

out=arriv.final replace;<br />

run;<br />

<br />

Et le catalogue <strong>de</strong> formats est allé se mettre dans la work pour qu’il puisse fonctionner sans défaut, sans <strong>de</strong>voir<br />

créer <strong>de</strong> libname library … ; et faire la soumission préalable d’un options fmtsearch=(arriv.formats);<br />

Une <strong>de</strong>struction préalable du catalogue <strong>de</strong> formats <strong>de</strong> la work garantit la non-accumulation <strong>de</strong> divers formats<br />

personnels épars dans ce même catalogue.<br />

dans <strong>Sas</strong> pour l’import.<br />

* en <strong>9.2.</strong>3 l’instruction FMTLIB=arriv.formstata; garantira une écriture ailleurs que work!<br />

proc format;<br />

value sex 1="Homme" 2="Femme" ; run;<br />

data recens;<br />

set arriv.recens;<br />

format sexe sex.;<br />

run;<br />

proc export dbms=stata<br />

data=recens<br />

outfile="d:\ined\duh\recens.dta" replace;<br />

run;<br />

INED Wielki 100

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

Saved successfully!

Ooh no, something went wrong!