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 4 – Tables and Graphs, Survey estimation<br />

Let’s run the same analysis with only the weight specified to<br />

see the difference.<br />

5. Click on the tab labeled SE/Cluster then click on the<br />

button labeled Survey settings .<br />

6. Click on the button labeled Clear settings<br />

7. Click on the Weights tab<br />

8. Click on the radio button next to Sampling Weight<br />

Variable.<br />

9. Click on the drop-down arrow <strong>for</strong> the Sampling<br />

weight variable: box and select hhwgt<br />

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

<strong>11</strong>. Click on the task svy:total -… on the <strong>Windows</strong> task<br />

bar.<br />

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

Note, we have gotten the same point estimate as the designbased<br />

estimate, but the standard errors are much smaller. The<br />

second table does not account <strong>for</strong> the sampling design.<br />

. svyset _n [pweight=hhwgt], vce(linearized) singleunit(missing)<br />

pweight: hhwgt<br />

VCE: linearized<br />

Single unit: missing<br />

Strata 1: <br />

SU 1: <br />

FPC 1: <br />

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

(running total on estimation sample)<br />

Survey: Total estimation<br />

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

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

Design df = 6600<br />

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

| Linearized<br />

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

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

maizea | 649230.9 14013.13 621760.6 676701.2<br />

ricea | 14472.95 1327.559 <strong>11</strong>870.5 17075.39<br />

milleta | 61770.91 3942.684 54041.97 69499.84<br />

sunfa | 24319.15 1907.919 20579.01 28059.29<br />

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

<strong>11</strong>2

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

Saved successfully!

Ooh no, something went wrong!