UNIVERSIT DU QUBEC MONTRAL - Laboratoire d'études de la ...
UNIVERSIT DU QUBEC MONTRAL - Laboratoire d'études de la ...
UNIVERSIT DU QUBEC MONTRAL - Laboratoire d'études de la ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Ce qui suit est un autre exemple impliquant un rep<strong>la</strong>ce <strong>de</strong> plus d’une condition :<br />
tab studtf26<br />
studtf26 | Freq. Percent Cum.<br />
------------+-----------------------------------<br />
1 | 8,455 15.04 15.04<br />
2 | 40,897 72.75 87.79<br />
7 | 1 0.00 87.79<br />
9 | 6,863 12.21 100.00<br />
------------+-----------------------------------<br />
Total | 56,216 100.00<br />
rep<strong>la</strong>ce studtf26=. if studtf26=7<br />
(6864 real changes ma<strong>de</strong>, 6864 to missing)<br />
tab studtf26<br />
studtf26 | Freq. Percent Cum.<br />
------------+-----------------------------------<br />
1 | 8,455 17.13 17.13<br />
2 | 40,897 82.87 100.00<br />
------------+-----------------------------------<br />
Total | 49,352 100.00<br />
L’instruction mv<strong>de</strong>co<strong>de</strong> change <strong>de</strong>s valeurs données d’une variable en point et<br />
mvenco<strong>de</strong> le contraire.<br />
mv<strong>de</strong>co<strong>de</strong> varlist [if exp] [in range], mv(numlist)<br />
mvenco<strong>de</strong> varlist [if exp] [in range], mv(#)<br />
Par exemple,<br />
mv<strong>de</strong>co<strong>de</strong> q1-q10, mv(9998 9999) Change les co<strong>de</strong>s 9998 et 9999 en points<br />
pour les variables q1 à q10.<br />
Mvenco<strong>de</strong> q1-q10, mv(9999) Change les points en 9999.<br />
L’instruction reco<strong>de</strong> effectue à peu près <strong>la</strong> même chose que l’instruction rep<strong>la</strong>ce :<br />
reco<strong>de</strong> varname oldco<strong>de</strong> [oldco<strong>de</strong>] = newco<strong>de</strong> [if exp] [in range]<br />
19