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 ...
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 3 – Tables and other Types of Analysis<br />
retained quartile. Your table should look similar to the table<br />
below:<br />
---------------------------------------------------------------------------<br />
| Calories retained quartile<br />
district | 1 2 3 4 Total<br />
----------+----------------------------------------------------------------<br />
monapo | 1,171.71 2,239.09 3,343.00 7,619.10 3,571.01<br />
| 1,806.87 2,554.89 4,303.12 20,873.97 20,873.97<br />
| 224.49 1,888.33 2,685.97 4,359.74 224.49<br />
|<br />
ribaue | 1,251.39 2,171.70 3,165.37 5,828.97 3,081.46<br />
| 1,790.43 2,566.01 3,734.49 9,464.90 9,464.90<br />
| 429.29 1,835.30 2,578.60 3,825.88 429.29<br />
|<br />
angoche | 929.42 1,718.79 2,442.25 5,022.29 2,506.50<br />
| 1,395.96 1,984.06 3,064.00 12,674.86 12,674.86<br />
| 207.91 1,447.06 1,997.71 3,134.74 207.91<br />
|<br />
Total | 1,<strong>11</strong>8.42 2,040.13 2,977.30 6,135.48 3,044.26<br />
| 1,806.87 2,566.01 4,303.12 20,873.97 20,873.97<br />
| 207.91 1,447.06 1,997.71 3,134.74 207.91<br />
---------------------------------------------------------------------------<br />
Multiple Response<br />
Questions<br />
1) Multiple dichotomy (yes/no<br />
questions)<br />
One of the types of question used in survey research asks the<br />
respondent to select multiple answers. A single variable cannot<br />
record the answers to this type of question adequately, because a<br />
variable can have only one value. The solution is to record each<br />
possible response in a different variable. The responses can be<br />
analyzed separately using commands you have already seen<br />
(tabulate), but ideally we want to analyze these related<br />
variables jointly.<br />
Multiple dichotomy - yes/no questions: If a survey question asks<br />
the respondent to "check all that apply" from a set of ten choices,<br />
a separate variable is required <strong>for</strong> each of the ten responses.<br />
Each variable has a value to indicate whether the response was<br />
checked (1) or yes, or not checked (2) or no. An example of this<br />
type of question can be found in the household level survey<br />
questions (see appendix), Section V - Agricultural Sales,<br />
question 64 - have you increased the quantities sold over the last<br />
five years? All of the variable names associated with this<br />
question begin with H64.<br />
Open the file:<br />
1. Select File then Open<br />
2. Select c-hh.dta<br />
3. Click on Open.<br />
4. Copy the command and paste it in the do-file editor.<br />
Delete the directory reference.<br />
In this survey 1 = yes and 2 = no. Questions you might ask are:<br />
A. How many respondents increased sales quantities of<br />
maize?<br />
94