0% found this document useful (0 votes)
27 views4 pages

c1.4 Log

5000 maximum variables running ad.unsw.edu.audataASBApplicationsStataSE12profile.do. Memory no longer needs to be set in modern statas; memory adjustments are performed on the fly automatically.

Uploaded by

Ernest Tang
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views4 pages

c1.4 Log

5000 maximum variables running ad.unsw.edu.audataASBApplicationsStataSE12profile.do. Memory no longer needs to be set in modern statas; memory adjustments are performed on the fly automatically.

Uploaded by

Ernest Tang
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

___ ____ ____ ____ ____ (R)

/__ / ____/ / ____/


___/ / /___/ / /___/ 12.0 Copyright 1985-2011 StataCorp LP
Statistics/Data Analysis
StataCorp
4905 Lakeway Drive
Special Edition
College Station, Texas 77845 USA
800-STATA-PC
http://www.stata.com
979-696-4600
[email protected]
979-696-4601 (fax)
122-user Stata network perpetual license:
Serial number: 40120535734
Licensed to: Australian School of Business
University of New South Wales
Notes:
1. (/v# option or -set maxvar-) 5000 maximum variables
running \\ad.unsw.edu.au\data\ASB\Applications\StataSE12\profile.do ...
. use "\\INFPWFS106.ad.unsw.edu.au\Student001$\z3288271\ie\DATA\meap01.dta", cle
> ar
. do "\\INFPWFS106.ad.unsw.edu.au\Student001$\z3288271\c1.4.do"
. #delimit; //Commands must be separated by semicolon
delimiter now ;
. clear;
. capture clear matrix;
. capture log close;
. set memory 64m;
set memory ignored.
Memory no longer needs to be set in modern Statas; memory adjustments are
performed on the fly automatically.
. cd H:\ie;
H:\ie
. log using myLog.log, replace;
-------------------------------------------------------------------------------name: <unnamed>

log: H:\ie\myLog.log
log type: text
opened on: 7 Mar 2012, 15:06:11
. //Read in data
> infile
> train age educ black hisp married nodegree mosinex re74 re75 re78 unem74 unem7
> 5 unem78 lre74 lre75 lre78 agesq mostrn
> using Jtrain2.RAW;
(445 observations read)
. //Describe variables in the file
> describe;
Contains data
obs:
445
vars:
19
size:
33,820
-------------------------------------------------------------------------------storage display value
variable name type format label variable label
-------------------------------------------------------------------------------train
float %9.0g
age
float %9.0g
educ
float %9.0g
black
float %9.0g
hisp
float %9.0g
married
float %9.0g
nodegree
float %9.0g
mosinex
float %9.0g
re74
float %9.0g
re75
float %9.0g
re78
float %9.0g
unem74
float %9.0g
unem75
float %9.0g
unem78
float %9.0g
lre74
float %9.0g
lre75
float %9.0g
lre78
float %9.0g
agesq
float %9.0g
mostrn
float %9.0g
-------------------------------------------------------------------------------Sorted by:
Note: dataset has changed since last saved

. //Summary stats of train if training men


> summarize train if train==1;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------train |
185
1
0
1
1
. //ii) averages of re78 for men receiving job training
> summarize re78 if train==1;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------re78 |
185 6.349145 7.867405
0 60.3079
. //ii) averages of re78 for men not receiving job training
> summarize re78 if train==0;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------re78 |
260 4.554802 5.483837
0 39.4835
. //iii)unem78 [if received job training amount unemployed]
> summarize unem78 if train==1;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------unem78 |
185 .2432432 .430205
0
1
. //iii)unem78 [if received no job training amount unemployed]
> summarize unem78 if train==0;
Variable |
Obs
Mean Std. Dev.
Min
Max
-------------+-------------------------------------------------------unem78 |
260 .3538462 .4790844
0
1
. //Close log file
> log close;
name: <unnamed>
log: H:\ie\myLog.log
log type: text
closed on: 7 Mar 2012, 15:06:11
-------------------------------------------------------------------------------. //Exit execution
> exit;

end of do-file

You might also like