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 ...
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 1 - Basic functions: Files, Descriptives, Data Trans<strong>for</strong>mations<br />
the variables. To obtain the same results from the<br />
Command window you can type<br />
Data storage types<br />
describe<br />
The output shows the file name, the number of<br />
observations, the number of variables, the size and then<br />
in<strong>for</strong>mation about each of the variables, the storage<br />
type, the display <strong>for</strong>mat the value label and variable<br />
label.<br />
Contains data from ……\c-q1a.dta<br />
obs: 1,524<br />
vars: <strong>11</strong><br />
size: 73,152 (93.0% of memory free)<br />
-----------------------------------------------------------------<br />
storage display value<br />
variable name type <strong>for</strong>mat label variable label<br />
-----------------------------------------------------------------<br />
district float %9.0g district district<br />
vil float %9.0g vil village<br />
hh float %9.0g household<br />
mem float %9.0g member number<br />
ca1 float %9.0g ca1 does this person work?<br />
ca2 float %9.0g ca2 relation to head<br />
ca3 float %9.0g age<br />
ca4 float %9.0g ca4 sex<br />
ca5 float %9.0g ca5 level of schooling<br />
ca6 float %9.0g ca6 marital status<br />
univ float %9.0g univ where entered<br />
-----------------------------------------------------------------<br />
Sorted by:<br />
An explanation of each of the columns follows:<br />
Storage type: Stata has 6 storage types:<br />
Float - real numbers, 8.5 digits of precision, width of<br />
8 with 5 decimals, default unless another type<br />
is specified<br />
Double - real numbers, 16.5 digits of precision, width<br />
of 16 with 5 decimals<br />
byte - integer between -127 and 100<br />
int - integer between -32,767 and 32,740<br />
long - integer between -2,147,483,647 and<br />
2,147,483,620<br />
strX - string. The X is replaced by the maximum<br />
number of characters allowed <strong>for</strong> the variable,<br />
For Intercooled Stata maximum size a string<br />
variable can be is 244, e.g. str244.<br />
Since Stata stores the data from the file in memory, when you<br />
define a variable, you want to define it with appropriate storage<br />
23