Data for Statistics 220
Homework 8 data
Either click on the link to the data with the left mouse button, then
select "Save as" under the File option, or point at the link and
click on the right mouse button, then select the "Save as"
option.
- PISA
- Download the dictionary-style file
pisa.dct and in Stata type
. infile using pisa.dct or
. infile using d:\pisa.dct
- Download a raw or plain file
pisa.raw and in Stata type
. infile case year lean using pisa.raw or
. infile case year lean using d:\pisa.raw
- Download a Stata-format file
pisa.dta and in Stata type
. use pisa.dta or
. use d:\pisa.dta
- Particles
- Download the dictionary-style file
particles.dct and in Stata type
. infile using particles.dct or
. infile using d:\particles.dct
- Download a raw or plain file
particles.raw and in Stata type
. infile rural city using particles.raw or
. infile rural city using d:\particles.raw
- Download a Stata-format file
particles.dta and in Stata type
. use particles.dta or
. use d:\particles.dta
- Corn and soy
- Download the dictionary-style file
cornsoy.dct and in Stata type
. infile using cornsoy.dct or
. infile using d:\cornsoy.dct
- Download a raw or plain file
cornsoy.dat or
cornsoy.raw and in Stata type
. infile row year corn soy using cornsoy.dat or
. infile row year corn soy using cornsoy.raw
- Download a Stata-format file
cornsoy.dta and in Stata type
. use cornsoy.dta or
. use d:\cornsoy.dta or
- GPA
- Download the dictionary-style file
gpa2.dct and in Stata type
Homework 4 simulation program
hw4.do, a script for running the simulation
Homework 3 data and simulation program
hw3.do, a script for running the simulation
You need this plus a data set.
You may use gpa.dta (a smaller version of the simluation data set)
or the full csdata.dta (described in the textbook). As before,
multiple forms of the data sets are below. Remember to use
Netscape!
- gpa version
- gpa.dta
. use gpa or
. use d:\gpa or similar.
- gpa.dct
. infile using gpa or
. infile using d:\gpa or similar.
- gpa.raw
. infile gpa using gpa
. infile gpa using d:\gpa
- Full CSDATA versions
- csdata.dta
. use csdata
or similar.
- csdata.dct
. infile using csdata
or similar.
- csdata.raw
. infile id gpa hsm hss hse satm satv using csdata
or similar.
Thursday, January 11
Homework 2 Data:
(If the .dta version of the data set does not work, a couple of alternatives
are provided below. You use a different command to load the data
depending on where it is located on your computer.)
New: Versions of the data set containing only the variables
needed for the assignment have been added below. They are
referred to as salarysmall data sets.
You may use
either version for hw 2.
- salarysmall data sets.
- salarysmall.dta (for assignment 2)
Load into Stata using one of the following or something similar:
. use salarysmall
. use C:\salarysmall
. use D:\salarysmall
- salarysmall.dct (for assignment 2)
. infile using salarysmall
. infile using C:\salarysmall
. infile using D:\salarysmall
- salarysmall.raw (for assignment 2)
. infile str6 Gender Startyr Sal0 Sal91
str8 Rankcode using salarysmall.raw
. infile str6 Gender Startyr Sal0 Sal91
str8 Rankcode using C:\salarysmall.raw
. infile str6 Gender Startyr Sal0 Sal91
str8 Rankcode using D:\salarysmall.raw
- Full salary data sets.
- salary.dta (for assignment 2)
Load into Stata using one of the following or something similar:
. use salary
. use C:\salary
. use D:\salary
- salary.dct (for assignment 2)
. infile using salary
. infile using C:\salary
. infile using D:\salary
- salary.raw (for assignment 2)
. infile ID str6 Gender Startyr Deptcode Sal0 Sal91
Expernc str8 Rankcode using salary.raw
. infile ID str6 Gender Startyr Deptcode Sal0 Sal91
Expernc str8 Rankcode using C:\salary.raw
. infile ID str6 Gender Startyr Deptcode Sal0 Sal91
Expernc str8 Rankcode using D:\salary.raw
Thursday, January 4, One computer note
In USITE, when you try to download the data set, you must tell the
computer to put it in a directory to which you have permission
to write. If it does not happen automatically, try the D:\
directory. If it still does not work, please ask a USITE user
assistant where you can write a file for temporary usage.
Homework 1 Data:
- table6.dta, table 6, chapter 1, IPS.
When you click on this link, it may appear that nonsense numbers
appear inside the frame on the screen. This happens because
Netscape is not sure what to do with the Stata-type data set.
Click on the panel that has the nonsense, then select under File
the option "Save Frame As". You should be asked whether you want
to save table6.dta. Do so, then in Stata, type
. use table6 or . use c:\table6
to get table6 into Stata.
- table6full.dta, full table
corresponding to table 6, chapter 1, IPS -- see the data appendix
D-3 in IPS. This is provided for your reference only.
When you click on this link, it may appear that nonsense numbers
appear inside the frame on the screen. This happens because
Netscape is not sure what to do with the Stata-type data set.
Click on the panel that has the nonsense, then select under File
the option "Save Frame As". You should be asked whether you want
to save table6full.dta. Do so, then in Stata, type
. use table6full or . use c:\table6full
to get table6full into Stata.
- (If the above does not work, here are some more versions. See
Hamilton, Statistics with Stata 5, for more details on
these versions.)
table6.dct table 6, Data Dictionary
Format. Save to Desktop, then type in Stata
. infile using table6 or
. infile using c:\table6
- table6.raw table 6, raw text format.
Save to Desktop, then in Stata
. infile id gpa iq age sex sc c1 c2 c3 c4 c5 c6 using table6.raw
or
. infile id gpa iq age sex sc c1 c2 c3 c4 c5 c6 using c:\table6.raw
Last
modified: Jan 4 2001