Professional Documents
Culture Documents
name: <unnamed>
log: H:\ie\myLog.log
log type: text
opened on: 7 Mar 2012, 14:53:06
. //Read in data
> infile
> dcode bcode math4 read4 lunch enroll expend exppp lenroll lexpend lexppp
> using MEAP01.RAW;
(1823 observations read)
. //Describe variables in the file
> describe;
Contains data
obs:
1,823
vars:
11
size:
80,212
-------------------------------------------------------------------------------storage display value
variable name type format label variable label
-------------------------------------------------------------------------------dcode
float %9.0g
bcode
float %9.0g
math4
float %9.0g
read4
float %9.0g
lunch
float %9.0g
enroll
float %9.0g
expend
float %9.0g
exppp
float %9.0g
lenroll
float %9.0g
lexpend
float %9.0g
lexppp
float %9.0g
-------------------------------------------------------------------------------Sorted by:
Note: dataset has changed since last saved
. //Summary stats of math4
> summarize math4;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------math4 | 1823 71.909 19.95409
0
100
. //Frequency of school scoring 100 (perfect score)
. do "\\INFPWFS106.ad.unsw.edu.au\Student001$\z3288271\C1.3.do"
. #delimit; //Commands must be separated by semicolon
delimiter now ;
. clear;
. capture clear matrix;
lexppp
float %9.0g
-------------------------------------------------------------------------------Sorted by:
Note: dataset has changed since last saved
. //Summary stats of math4
> summarize math4;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------math4 | 1823 71.909 19.95409
0
100
. //Frequency of school scoring 100 (perfect score)
> count if math4==100;
38
. //frequency of school scoring 50 only
> count if math4==50;
17
. //correlation between math4 and read4
> correlate math4 read4;
(obs=1823)
| math4 read4
-------------+-----------------math4 | 1.0000
read4 | 0.8427 1.0000
. //Exit execution
> exit;
end of do-file