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.

2.6 Un exemple : l’instruction –summarize–<br />

La fonction summarize permet d’obtenir <strong>de</strong> l’information sur <strong>de</strong>s variables continues.<br />

summarize [varlist] [weight] [if exp] [in range] [,<br />

[<strong>de</strong>tail|meanonly] format]<br />

Ici, les lettres « s » et « u » sont soulignées. Tant que l’instruction contient ces <strong>de</strong>ux<br />

lettres, Stata <strong>la</strong> comprendra. Ainsi, summar équivaut à sum qui équivaut à su.<br />

Par exemple, on pourrait analyser le revenu total <strong>de</strong> <strong>la</strong> famille <strong>de</strong> recensement (TOTALC):<br />

sum TOTALC<br />

Variable | Obs Mean Std. Dev. Min Max<br />

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

TOTALC | 871 69841.61 478185.6 0 9999999<br />

On peut aussi inscrire une suite <strong>de</strong> variables:<br />

sum TOTALC WAGESC SELFIC CHDBNC<br />

Variable | Obs Mean Std. Dev. Min Max<br />

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

TOTALC | 871 69841.61 478185.6 0 9999999<br />

WAGESC | 871 55980.01 478808.1 0 9999999<br />

SELFIC | 871 25730.16 479011.6 -22614 9999999<br />

ou même mettre <strong>de</strong>s conditions:<br />

sum TOTALC if CFSTRUC==1 & NUCHILD>=2 & TOTALC

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

Saved successfully!

Ooh no, something went wrong!