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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Stata <strong>11</strong> Sample Session Section 4 – Tables and Graphs, Survey estimation<br />

3. We can specific a variable or just run the command to<br />

look at the complete dataset. If we were interested to<br />

know which strata have only one sampling unit, we<br />

could put a tick next the box labeled “Display only<br />

the strata with a single sampling unit”<br />

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

editor, paste the command, switch back to the dialog<br />

box and click on Ok .<br />

Once the survey design has been specified and the file saved, it<br />

is not longer necessary to specify it again. The specification is<br />

saved with the data file.<br />

We can use the svytotal command to look at the total<br />

estimates.<br />

. svy linearized : total maizea ricea milleta sunfa<br />

(running total on estimation sample)<br />

Survey: Total estimation<br />

1. Click on Statistics / Survey data analysis<br />

2. Then click on Means, proportions, ratios, totals<br />

then Totals<br />

3. In the Variables box select maisea ricea milleta<br />

sunfa<br />

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

editor, paste the command, switch back to the dialog<br />

box and click on Submit<br />

Number of strata = 69 Number of obs = 6601<br />

Number of PSUs = 394 Population size = 807414<br />

Design df = 325<br />

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

| Linearized<br />

| Total Std. Err. [95% Conf. Interval]<br />

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

maizea | 649230.9 25105.89 599840.3 698621.5<br />

ricea | 14472.95 2360.009 9830.125 19<strong>11</strong>5.77<br />

milleta | 61770.91 7346.125 47318.95 76222.87<br />

sunfa | 24319.15 3418.858 17593.26 31045.04<br />

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

<strong>11</strong>1

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

Saved successfully!

Ooh no, something went wrong!