Content
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<!-- Generated by statdoc (version v0.9.1-beta.snapshot) on 2015-02-23 10:45:56 -->
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<title>efn508</title>
<meta name="date" content="2015-02-23">
<script src="../d3.min.js"></script>
<script src="../statdoc.js"></script>
</head>
<body>
<!-- ========= START OF TOP NAVBAR ========= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li ><a href="../overview/overview-summary.html" target="classFrame">Overview</a></li>
<li ><a href="../variables/variables-summary.html" target="classFrame">Variables</a></li>
<li class="navBarCell1Rev"><a href="../files/files-summary.html" target="classFrame">Files</a></li>
<li ><a href="../tokens/tokens-summary.html" target="classFrame">Tokens</a></li>
<!-- <li><a href="../flows/flow-summary.html" target="classFrame">Flows</a></li> -->
<li ><a href="../overview/help-doc.html" target="classFrame">Help</a></li>
<!-- <li class="navBarCell1Rev">Active</li> -->
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>
<a href="../files/_additionaldatafiles_dailyspreads.dta.html" title="/additionaldatafiles/dailyspreads.dta">Prev</a>
</li>
<li>
<a href="../files/_additionaldatafiles_gdp.xlsx.html" title="/additionaldatafiles/gdp.xlsx">Next</a>
</li>
</ul>
<ul class="navList">
<li><a href="../compare.html?files/_additionaldatafiles_food.dta.html" target="_top">Compare</a></li>
<li><a href="../index.html?files/_additionaldatafiles_food.dta.html" target="_top">Frames</a></li>
<li><a href="../files/_additionaldatafiles_food.dta.html" target="_top">No Frames</a></li>
</ul>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= --><!-- ======== START OF FILE DATA ======== -->
<div class="header">
<div class="subTitle">efn508</div>
<h2 title="Statdoc File food.dta" class="title">File food.dta</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>
<table border="0" style="border-collapse: collapse;table-layout: auto;width: auto;">
<colgroup>
<col span="1" width="200px">
<col width="10px" style="text-align:center;">
<col width="200px">
<col width="10px" style="text-align:center;">
<col span="1" width="200px">
</colgroup>
<tr class="inheritance">
<td style="border: none;"></td>
<td style="text-align:center;background: #eeeeff;">→</td>
<td style="background: #eeeeff;">
<span style="background: #eeeeff;"><b>/additionaldatafiles/food.dta</b></span>
</td>
<td style="text-align:center;background: #eeeeff;">↘</td>
</tr>
<tr class="inheritance">
<!-- DEBUG [/StataProgramFiles/Section 1.do:153] -->
<td colspan="2" style="border: none;"></td>
<td style="text-align:right; background: #ffff99 ;" colspan="1">
<span style="white-space: nowrap; background: #ffff99;">
<a href="../files/_StataProgramFiles_Section 1.do.html" title="/StataProgramFiles/Section 1.do:153 (use)" target="classFrame" >/StataProgramFiles/Section 1.do</a><b>:</b><a href="../files/_StataProgramFiles_Section 1.do.html#153" title="/StataProgramFiles/Section 1.do:153 (use)" target="classFrame" >153</a><br>
</span>
</td>
<td style="text-align:center; background: #eeeeff;">
</td>
<td>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre><span class="strong">/additionaldatafiles/food.dta <a href="../../additionaldatafiles/food.dta">open</a></span>
file:data:dta</pre>
</li>
</ul>
</div>
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst">N</td>
<td class="colLast">40</td>
</tr>
<tr class="rowColor">
<td class="colFirst">datasignature</td>
<td class="colLast">40:2(97443):534659203:2149882940</td>
</tr>
<tr class="altColor">
<td class="colFirst">date</td>
<td class="colLast">Mon Feb 24 13:26:56 EST 2014</td>
</tr>
<tr class="rowColor">
<td class="colFirst">lastmodified</td>
<td class="colLast">1393212416000</td>
</tr>
<tr class="altColor">
<td class="colFirst">variables</td>
<td class="colLast">2</td>
</tr>
</tbody>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Variable Summary table, listing datasets and labels">
<caption><span><a name="variables"><!-- --></a>All variables in food.dta</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Variable</th>
<th class="colOne" scope="col">Graph</th>
<th class="colLast" scope="col">Type</th>
<th class="colLast" scope="col">N</th>
<th class="colLast" scope="col">Descriptives</th>
<th class="colLast" scope="col">Label</th>
</tr>
<tr class="altColor" style="background: #ffe999;">
<td class="colFirst"><a name="food.dta"><!-- --></a><a name="food_exp"><!-- --></a>
<a href='javascript:toggle("varline_food_exp_210736144");' title="Show more">[+]</a>
<a href="../variables/food_exp.html#food.dta" target="classFrame" title="Variable food_exp">food_exp</a><br>
<i>@<a href="../files/_additionaldatafiles_food.dta.html#food_exp" target="classFrame" title="Data food.dta">food.dta</a></i></td>
<td class="colOne">
<div id="graph_210736144">
<script>
var freq = [.00251072, .00407992, .00251072, .00188304, .00125536, .00031384];
var label = [149.53917, 229.19749, 308.85583, 388.51416, 468.17249, 547.83081];
hist( "#graph_210736144", freq, label );
</script>
</div>
</td>
<td class="colLast">
identifier<br>
(float)
</td>
<td class="colLast">
40<br>
(40)
</td>
<td class="colLast"></td>
<td class="colLast">y = weekly food expenditure in $</td>
</tr>
<tr id="varline_food_exp_210736144" class="$varcolor" style="display:none; background: #ffe999;">
<td class="colOne" colspan="8">
<div class="block">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">N</td>
<td class="colLast">40</td>
</tr>
<tr class="altColor">
<td class="colFirst">N_unique</td>
<td class="colLast">40</td>
</tr>
<tr class="rowColor">
<td class="colFirst">class</td>
<td class="colLast">identifier</td>
</tr>
<tr class="altColor">
<td class="colFirst">example0</td>
<td class="colLast">115.22</td>
</tr>
<tr class="rowColor">
<td class="colFirst">histh</td>
<td class="colLast">.00251072, .00407992, .00251072, .00188304, .00125536, .00031384</td>
</tr>
<tr class="altColor">
<td class="colFirst">histw</td>
<td class="colLast">149.53917, 229.19749, 308.85583, 388.51416, 468.17249, 547.83081</td>
</tr>
<tr class="rowColor">
<td class="colFirst">label</td>
<td class="colLast">y = weekly food expenditure in $</td>
</tr>
<tr class="altColor">
<td class="colFirst">max</td>
<td class="colLast"> 587.660</td>
</tr>
<tr class="rowColor">
<td class="colFirst">mean</td>
<td class="colLast"> 283.573</td>
</tr>
<tr class="altColor">
<td class="colFirst">min</td>
<td class="colLast"> 109.710</td>
</tr>
<tr class="rowColor">
<td class="colFirst">sd</td>
<td class="colLast"> 112.675</td>
</tr>
<tr class="altColor">
<td class="colFirst">type</td>
<td class="colLast">float</td>
</tr>
</tbody>
</table>
<br>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Variable Summary table, listing datasets and labels">
<caption ><span><a name="variables"><!-- --></a>Estimations and Descriptive Statistics with food_exp</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" style="width:30px" scope="col">file</th>
<th class="colOne" style="width:30px" scope="col">#</th>
<th class="colLast" width="100%" scope="col">command</th>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="160" title="hist"><!-- --></a>
<span style="white-space: nowrap; background: #ffff99;">
<a href="../files/_StataProgramFiles_Section 1.do.html" title="/StataProgramFiles/Section 1.do" target="classFrame" >/StataProgramFiles/Section 1.do</a><b>:</b>
</span>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#160" title="/StataProgramFiles/Section 1.do:160 (hist)" target="classFrame" >160</a> <a onclick='toggle("line_varline_food_exp_210736144_1448129326");' title="hist">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">hist</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a></span>
<div id="line_varline_food_exp_210736144_1448129326" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 2. Draw histograms of food_exp and income
hist food_exp</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">hist</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="164" title="graph box"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#164" title="/StataProgramFiles/Section 1.do:164 (graph box)" target="classFrame" >164</a> <a onclick='toggle("line_line_varline_food_exp_210736144_1448129326_1221186317");' title="graph box">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">graph box</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a></span>
<div id="line_line_varline_food_exp_210736144_1448129326_1221186317" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 3. Draw box plots of food_exp and income
graph box food_exp</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst">command</td>
<td class="colLast">graph box</td>
</tr>
<tr class="rowColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="168" title="twoway"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#168" title="/StataProgramFiles/Section 1.do:168 (twoway)" target="classFrame" >168</a> <a onclick='toggle("line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945");' title="twoway">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">twoway</span>
<span class="cmdparameters">(<a href="../tokens/s.html#scatter">scatter</a> <a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a>)</span>
<div id="line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 4. Draw scatterplot of food_exp versus income
twoway (scatter food_exp income)</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">twoway</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">parameters</td>
<td class="colLast">(<a href="../tokens/s.html#scatter">scatter</a> <a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a>)</td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffd8ab;"><a name="137" title="reg"><!-- --></a>
<span style="white-space: nowrap; background: #ffd8ab;">
<a href="../files/_StataProgramFiles_Section 3.do.html" title="/StataProgramFiles/Section 3.do" target="classFrame" >/StataProgramFiles/Section 3.do</a><b>:</b>
</span>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFCC99;">
<a href="../files/_StataProgramFiles_Section 3.do.html#137" title="/StataProgramFiles/Section 3.do:137 (reg)" target="classFrame" >137</a> <a onclick='toggle("line_line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945_1145917165");' title="reg">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">reg</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></span>
<div id="line_line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945_1145917165" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 1. Estimate linear model
reg food_exp income</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst">command</td>
<td class="colLast">reg</td>
</tr>
<tr class="rowColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffd8ab;"><a name="143" title="reg"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFCC99;">
<a href="../files/_StataProgramFiles_Section 3.do.html#143" title="/StataProgramFiles/Section 3.do:143 (reg)" target="classFrame" >143</a> <a onclick='toggle("line_line_line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945_1145917165_-942233867");' title="reg">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">reg</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></span>
, <span class="cmdoptions"> <a href="../tokens/v.html#vce">vce(</a><a href="../tokens/r.html#robust">robust</a>)</span>
<div id="line_line_line_line_line_varline_food_exp_210736144_1448129326_1221186317_1231969945_1145917165_-942233867" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 2. Corrected standard errors
reg food_exp income, vce(robust)</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">reg</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">options</td>
<td class="colLast"> <a href="../tokens/v.html#vce">vce(</a><a href="../tokens/r.html#robust">robust</a>)</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
</table>
<br>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Variable Summary table, listing datasets and labels">
<caption ><span><a name="variables"><!-- --></a>Data Manipulations with food_exp</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" style="width:30px" scope="col">file</th>
<th class="colOne" style="width:30px" scope="col">#</th>
<th class="colLast" width="100%" scope="col">command</th>
</tr>
</table>
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList">
<h3>Script Output</h3>
<pre class="wrap"><span>
</span><span class="st_res">food_exp: y = weekly food expenditure in $ </span><span class="st_txt">Number of Observations
------------------------------------------- ------------------------------
Total Integers Nonintegers
| </span><span class="st_res"># </span><span class="st_txt">Negative </span><span class="st_res">- - -
</span><span class="st_txt">| </span><span class="st_res"># # </span><span class="st_txt">Zero </span><span class="st_res">- - -
</span><span class="st_txt">| </span><span class="st_res"># # # </span><span class="st_txt">Positive </span><span class="st_res"> 40 1 39
</span><span class="st_txt">| </span><span class="st_res"># # # </span><span class="st_txt">----- ----- -----
| </span><span class="st_res"># # # # </span><span class="st_txt">Total </span><span class="st_res"> 40 1 39
</span><span class="st_txt">| </span><span class="st_res"># # # # . </span><span class="st_txt">Missing </span><span class="st_res">-
</span><span class="st_txt">+---------------------- -----
</span><span class="st_res">109.71 587.66 40
(40 unique values)
</span><span class="st_txt"> Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
food_exp |</span><span class="st_res"> 40 283.5735 112.6752 109.71 587.66
@mean 283.573
@sd 112.675
@min 109.710
@max 587.660
@example0 115.22
@histh .00251072, .00407992, .00251072, .00188304, .00125536, .00031384
@histw 149.53917, 229.19749, 308.85583, 388.51416, 468.17249, 547.83081
@type float
@label y = weekly food expenditure in $
@class identifier
@N_unique 40
@N 40
</span></pre>
</li>
</ul>
</li>
</ul>
</div>
</td>
</tr>
<tr class="rowColor" style="background: #ffed99;">
<td class="colFirst"><a name="food.dta"><!-- --></a><a name="income"><!-- --></a>
<a href='javascript:toggle("varline_income_-744235048");' title="Show more">[+]</a>
<a href="../variables/income.html#food.dta" target="classFrame" title="Variable income">income</a><br>
<i>@<a href="../files/_additionaldatafiles_food.dta.html#income" target="classFrame" title="Data food.dta">food.dta</a></i></td>
<td class="colOne">
<div id="graph_-744235048">
<script>
var freq = [.02019522, .01009761, .04039044, .07068327, .04543924, .01514641];
var label = [6.1658335, 11.1175, 16.069168, 21.020834, 25.972502, 30.924168];
hist( "#graph_-744235048", freq, label );
</script>
</div>
</td>
<td class="colLast">
identifier<br>
(float)
</td>
<td class="colLast">
40<br>
(40)
</td>
<td class="colLast"></td>
<td class="colLast">x = weekly income in $100</td>
</tr>
<tr id="varline_income_-744235048" class="$varcolor" style="display:none; background: #ffed99;">
<td class="colOne" colspan="8">
<div class="block">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">N</td>
<td class="colLast">40</td>
</tr>
<tr class="altColor">
<td class="colFirst">N_unique</td>
<td class="colLast">40</td>
</tr>
<tr class="rowColor">
<td class="colFirst">class</td>
<td class="colLast">identifier</td>
</tr>
<tr class="altColor">
<td class="colFirst">example0</td>
<td class="colLast">3.6900001</td>
</tr>
<tr class="rowColor">
<td class="colFirst">histh</td>
<td class="colLast">.02019522, .01009761, .04039044, .07068327, .04543924, .01514641</td>
</tr>
<tr class="altColor">
<td class="colFirst">histw</td>
<td class="colLast">6.1658335, 11.1175, 16.069168, 21.020834, 25.972502, 30.924168</td>
</tr>
<tr class="rowColor">
<td class="colFirst">label</td>
<td class="colLast">x = weekly income in $100</td>
</tr>
<tr class="altColor">
<td class="colFirst">max</td>
<td class="colLast"> 33.400</td>
</tr>
<tr class="rowColor">
<td class="colFirst">mean</td>
<td class="colLast"> 19.605</td>
</tr>
<tr class="altColor">
<td class="colFirst">min</td>
<td class="colLast"> 3.690</td>
</tr>
<tr class="rowColor">
<td class="colFirst">sd</td>
<td class="colLast"> 6.848</td>
</tr>
<tr class="altColor">
<td class="colFirst">type</td>
<td class="colLast">float</td>
</tr>
</tbody>
</table>
<br>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Variable Summary table, listing datasets and labels">
<caption ><span><a name="variables"><!-- --></a>Estimations and Descriptive Statistics with income</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" style="width:30px" scope="col">file</th>
<th class="colOne" style="width:30px" scope="col">#</th>
<th class="colLast" width="100%" scope="col">command</th>
</tr>
<tr class="rowColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="161" title="hist"><!-- --></a>
<span style="white-space: nowrap; background: #ffff99;">
<a href="../files/_StataProgramFiles_Section 1.do.html" title="/StataProgramFiles/Section 1.do" target="classFrame" >/StataProgramFiles/Section 1.do</a><b>:</b>
</span>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#161" title="/StataProgramFiles/Section 1.do:161 (hist)" target="classFrame" >161</a> <a onclick='toggle("line_varline_income_-744235048_-312768829");' title="hist">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">hist</span>
<span class="cmdparameters"><a href="../variables/income.html">income</a></span>
<div id="line_varline_income_-744235048_-312768829" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">hist income</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">hist</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="165" title="graph box"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#165" title="/StataProgramFiles/Section 1.do:165 (graph box)" target="classFrame" >165</a> <a onclick='toggle("line_line_varline_income_-744235048_-312768829_-38505580");' title="graph box">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">graph box</span>
<span class="cmdparameters"><a href="../variables/income.html">income</a></span>
<div id="line_line_varline_income_-744235048_-312768829_-38505580" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">graph box income</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst">command</td>
<td class="colLast">graph box</td>
</tr>
<tr class="rowColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffff99;"><a name="168" title="twoway"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 1.do.html#168" title="/StataProgramFiles/Section 1.do:168 (twoway)" target="classFrame" >168</a> <a onclick='toggle("line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945");' title="twoway">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">twoway</span>
<span class="cmdparameters">(<a href="../tokens/s.html#scatter">scatter</a> <a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a>)</span>
<div id="line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 4. Draw scatterplot of food_exp versus income
twoway (scatter food_exp income)</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">twoway</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">parameters</td>
<td class="colLast">(<a href="../tokens/s.html#scatter">scatter</a> <a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a>)</td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffd8ab;"><a name="137" title="reg"><!-- --></a>
<span style="white-space: nowrap; background: #ffd8ab;">
<a href="../files/_StataProgramFiles_Section 3.do.html" title="/StataProgramFiles/Section 3.do" target="classFrame" >/StataProgramFiles/Section 3.do</a><b>:</b>
</span>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFCC99;">
<a href="../files/_StataProgramFiles_Section 3.do.html#137" title="/StataProgramFiles/Section 3.do:137 (reg)" target="classFrame" >137</a> <a onclick='toggle("line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165");' title="reg">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">reg</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></span>
<div id="line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 1. Estimate linear model
reg food_exp income</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst">command</td>
<td class="colLast">reg</td>
</tr>
<tr class="rowColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffd8ab;"><a name="143" title="reg"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFCC99;">
<a href="../files/_StataProgramFiles_Section 3.do.html#143" title="/StataProgramFiles/Section 3.do:143 (reg)" target="classFrame" >143</a> <a onclick='toggle("line_line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165_-942233867");' title="reg">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">reg</span>
<span class="cmdparameters"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></span>
, <span class="cmdoptions"> <a href="../tokens/v.html#vce">vce(</a><a href="../tokens/r.html#robust">robust</a>)</span>
<div id="line_line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165_-942233867" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">// 2. Corrected standard errors
reg food_exp income, vce(robust)</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">reg</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">options</td>
<td class="colLast"> <a href="../tokens/v.html#vce">vce(</a><a href="../tokens/r.html#robust">robust</a>)</td>
</tr>
<tr class="altColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/food_exp.html">food_exp</a> <a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
<tr class="altColor">
<td class="cmd_$filter colFirst" style="text-align:right; padding-right: 1px; background: #ffd8ab;"><a name="154" title="sum"><!-- --></a>
<b>:</b>
</td>
<td class="cmd_$filter colOne" style="text-align:right; border: none; padding-left: 2px; background: #FFFF99;">
<a href="../files/_StataProgramFiles_Section 3.do.html#154" title="/StataProgramFiles/Section 3.do:154 (sum)" target="classFrame" >154</a> <a onclick='toggle("line_line_line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165_-942233867_-39884998");' title="sum">[+]</a>
</td>
<td class="colLast">
<span class="cmdcommand">sum</span>
<span class="cmdparameters"><a href="../variables/income.html">income</a></span>
<div id="line_line_line_line_line_line_varline_income_-744235048_-312768829_-38505580_1231969945_1145917165_-942233867_-39884998" style="display:none">
<ul class="blockList">
<li class="blockList">
<pre class="wrap">* Say we want elasticity at the mean.
* Store values of mean of income and mean of predicted dependent variable.
sum income</pre>
</li>
</ul>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties">
<caption><span><a name="properties"><!-- --></a>All properties</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">key</th>
<th class="colLast" scope="col">content</th>
</tr>
<tbody>
<tr class="rowColor">
<td class="colFirst">command</td>
<td class="colLast">sum</td>
</tr>
<tr class="altColor">
<td class="colFirst">indent</td>
<td class="colLast">0</td>
</tr>
<tr class="rowColor">
<td class="colFirst">parameters</td>
<td class="colLast"><a href="../variables/income.html">income</a></td>
</tr>
</tbody>
</table>
<br>
</br>
</div>
</td>
</tr>
</table>
<br>
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Variable Summary table, listing datasets and labels">
<caption ><span><a name="variables"><!-- --></a>Data Manipulations with income</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" style="width:30px" scope="col">file</th>
<th class="colOne" style="width:30px" scope="col">#</th>
<th class="colLast" width="100%" scope="col">command</th>
</tr>
</table>
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList">
<h3>Script Output</h3>
<pre class="wrap"><span>
income: x = weekly income in $100 </span><span class="st_txt">Number of Observations
---------------------------------- ------------------------------
Total Integers Nonintegers
| </span><span class="st_res"># </span><span class="st_txt">Negative </span><span class="st_res">- - -
</span><span class="st_txt">| </span><span class="st_res"># </span><span class="st_txt">Zero </span><span class="st_res">- - -
</span><span class="st_txt">| </span><span class="st_res"># # </span><span class="st_txt">Positive </span><span class="st_res"> 40 - 40
</span><span class="st_txt">| </span><span class="st_res"># # </span><span class="st_txt">----- ----- -----
| </span><span class="st_res"># # </span><span class="st_txt">Total </span><span class="st_res"> 40 - 40
</span><span class="st_txt">| </span><span class="st_res"># # # # # </span><span class="st_txt">Missing </span><span class="st_res">-
</span><span class="st_txt">+---------------------- -----
</span><span class="st_res">3.69 33.4 40
(40 unique values)
</span><span class="st_txt"> Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
income |</span><span class="st_res"> 40 19.60475 6.847773 3.69 33.4
@mean 19.605
@sd 6.848
@min 3.690
@max 33.400
@example0 3.6900001
@histh .02019522, .01009761, .04039044, .07068327, .04543924, .01514641
@histw 6.1658335, 11.1175, 16.069168, 21.020834, 25.972502, 30.924168
@type float
@label x = weekly income in $100
@class identifier
@N_unique 40
@N 40
</span><span class="st_txt">
</span></pre>
</li>
</ul>
</li>
</ul>
</div>
</td>
</tr>
</table>
</li>
</ul>
<a name="content"><!-- --></a>
<!-- ========== CONTENT =========== -->
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList">
<h3>Content</h3>
<pre>
<span></span><span class="st_txt"></span><span class="st_txt">
> * A do file to run the standard stats for a whole data set.
> *
> * Note that you must delete the files in the derived directory
> * for changes to be reflected in the output.
> *
> * @version 0.1
> */
</span><span class="st_txt">
</span><span class="st_txt">Contains data from </span><span class="st_res">/home/schaffne/Dropbox/Public/efn508/additionaldatafiles/food.dta
</span><span class="st_txt"> obs:</span><span class="st_res"> 40
</span><span class="st_txt"> vars:</span><span class="st_res"> 2 12 Nov 2007 13:54
</span><span class="st_txt"> size:</span><span class="st_res"> 320
</span><span class="st_txt">Sorted by:
</span><span class="st_txt">
</span><span class="st_txt">
</span><span class="st_res">@N 40
</span><span class="st_txt">
</span><span class="st_res">@variables 2
</span><span class="st_txt">
</span><span class="st_res">40:2(97443):534659203:2149882940
</span><span class="st_txt">
</span><span class="st_txt">
</span><span class="st_res">@datasignature 40:2(97443):534659203:2149882940
</span><span class="st_txt">
</span><span class="st_err">panel variable not set; use </span><span class="st_bf">xtset</span><span class="st_txt"> </span><span class="st_it">varname</span><span class="st_txt"> ...
</span><span class="st_txt">
</span><span class="st_txt">
</span><span class="st_res"></span><span class="st_txt">
</span><span class="st_txt">
</span>
</pre>
</li>
</ul>
</li>
</ul>
<ul class="blockList">
<li class="blockList">
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== TOKENS =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Tokens</h3>
<span style="font-size: 24pt;"><a class="tokens" href="../tokens/d.html#dta">dta</a></span>
<span style="font-size: 11pt;"><a class="tokens" href="../tokens/f.html#food">food</a></span>
<span style="font-size: 8pt;"><a class="tokens" href="../tokens/f.html#food_dta">food dta</a></span>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ========= START OF BOTTOM NAVBAR ========= -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li ><a href="../overview/overview-summary.html" target="classFrame">Overview</a></li>
<li ><a href="../variables/variables-summary.html" target="classFrame">Variables</a></li>
<li class="navBarCell1Rev"><a href="../files/files-summary.html" target="classFrame">Files</a></li>
<li ><a href="../tokens/tokens-summary.html" target="classFrame">Tokens</a></li>
<!-- <li><a href="../flows/flow-summary.html" target="classFrame">Flows</a></li> -->
<li ><a href="../overview/help-doc.html" target="classFrame">Help</a></li>
<!-- <li class="navBarCell1Rev">Active</li> -->
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>
<a href="../files/_additionaldatafiles_dailyspreads.dta.html" title="/additionaldatafiles/dailyspreads.dta">Prev</a>
</li>
<li>
<a href="../files/_additionaldatafiles_gdp.xlsx.html" title="/additionaldatafiles/gdp.xlsx" >Next</a>
</li>
</ul>
<ul class="navList">
<li><a href="../index.html?files/_additionaldatafiles_food.dta.html" target="_top">Frames</a></li>
<li><a href="../files/_additionaldatafiles_food.dta.html" target="_top">No Frames</a></li>
</ul>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ========= END OF BOTTOM NAVBAR ========= -->
</body>
</html>