03.07.2013 Views

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 ...

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.

Par exemple, pour <strong>la</strong> variable province PROVF, on aurait :<br />

<strong>de</strong>scribe PROVF<br />

storage disp<strong>la</strong>y value<br />

variable name type format <strong>la</strong>bel variable <strong>la</strong>bel<br />

-------------------------------------------------------------------------------<br />

PROVF byte %57.0g PROVF PROVINCE OU TERRITOIRE<br />

<strong>la</strong>bel variable PROVF "Provinces du Canada"<br />

<strong>la</strong>bel data "Projet Transitions"<br />

<strong>la</strong>bel <strong>de</strong>fine PROVF 10 "Terre-Neuve" 11 "Iles-du-Prince-Edouard" ///<br />

12 "Nouvelle-Ecosse" 13 "Nouveau-Brunswick" 24 "Quebec" 35 "Ontario"///<br />

46 "Manitoba" 47 "Saskatchewan" 48 "Alberta" 59 "Colombie-Britannique"<br />

60 "Territoire du Yukon, Territoires du Nord-Ouest et Nunavut"<br />

<strong>la</strong>bel values PROVF PROVLABEL<br />

<strong>de</strong>scribe PROVF<br />

storage disp<strong>la</strong>y value<br />

variable name type format <strong>la</strong>bel variable <strong>la</strong>bel<br />

-------------------------------------------------------------------------------<br />

PROVF byte %57.0g PROVLABEL<br />

Provinces du Canada<br />

<strong>la</strong>bel list<br />

PROVF:<br />

10 Terre-Neuve-et-Labrador<br />

11 Île-du-Prince-Édouard<br />

12 Nouvelle-Écosse<br />

13 Nouveau-Brunswick<br />

24 Québec<br />

35 Ontario<br />

46 Manitoba<br />

47 Saskatchewan<br />

48 Alberta<br />

59 Colombie-Britannique<br />

60 Territoire du Yukon, Territoires du Nord-Ouest et Nunavut<br />

Voir help <strong>la</strong>bel et help notes pour plus <strong>de</strong> détails.<br />

4.3 Création <strong>de</strong> variables dichotomiques<br />

Une variable dichotomique (dummy variable) prend <strong>la</strong> valeur 1 si l’individu est exposé à<br />

un facteur et 0 autrement. Ce type <strong>de</strong> variable sert souvent à traiter <strong>de</strong> multiples groupes à<br />

<strong>la</strong> fois. Par exemple, pour les provinces, dix variables dichotomiques sont nécessaires,<br />

chacune prenant <strong>la</strong> valeur 0 ou 1.<br />

En fait, il faudra en éliminer une pour ne pas avoir <strong>de</strong> problème <strong>de</strong> multicolinéarité<br />

parfaite dans les régressions à faire, mais ce problème sera traité dans un autre atelier.<br />

Ainsi, l’instruction à utiliser sera :<br />

g [nom <strong>de</strong> <strong>la</strong> variable créée] =(conditions).<br />

Par conséquent, pour les provinces, il faudrait procé<strong>de</strong>r comme suit :<br />

22

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

Saved successfully!

Ooh no, something went wrong!