10.04.2013 Views

STATA 11 for Windows SAMPLE SESSION - Food Security Group ...

STATA 11 for Windows SAMPLE SESSION - Food Security Group ...

STATA 11 for Windows SAMPLE SESSION - Food Security Group ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stata <strong>11</strong> Sample Session Section 1 - Basic functions: Files, Descriptives, Data Trans<strong>for</strong>mations<br />

The Tabulate2 - two-way tables dialog box opens.<br />

2. Use age_gp <strong>for</strong> Row variable and ca2 (relation to<br />

head) <strong>for</strong> Column variable.<br />

3. Check the proper selections in the Cell content choices,<br />

<strong>for</strong> we want both Row and Column percentages.<br />

4. Click on the copy button, switch to the do-file<br />

editor, paste the command and switch back. Click<br />

on Ok to run the command.<br />

The Stata command is:<br />

tabulate age_gp ca2, column row<br />

From the table you can see that <strong>11</strong>.95% of heads of households<br />

are 61 years of age or older. Also, of the people 61 years or<br />

older, 83.67% are heads of households.<br />

Apply what you have learned about data trans<strong>for</strong>mations<br />

and descriptive statistics in the following exercise.<br />

Exercise 1.2 Using the Household Data and Questionnaire (available in<br />

the annex), find out the number of households in each<br />

district that have 1-4, 5-7, and more than 7 persons per<br />

household. One way to find out this in<strong>for</strong>mation is to create<br />

the following table.<br />

Hints:<br />

a. Use the file c-hh.dta.<br />

b. Recode h1 into hhsize using the following groups:<br />

(1 thru 4) (5 thru 7) (8 thru Highest).<br />

c. Add a variable label and value labels.<br />

d. Run a two-way table - Tabulate on this variable by<br />

district<br />

Looking at the results, you can see 34.76% of all 1 to 4<br />

member households are found within Monapo and that<br />

60.75% of all households in Monapo have 1 to 4 members<br />

in a household.<br />

49

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

Saved successfully!

Ooh no, something went wrong!