ECON 452 (A & B) Winter 2001 C. Ferrall / A. Gregory
IN-CLASS LAB WEEK II.1
TO BEGIN
- Start Netscape.
- Go to: Econ 452 Index => Lab Instructions => lab1.html.
- Read and follow the instructions carefully.
- Ask questions and ask for help whenever necessary.
- Set Up.
- Start Stata (and if Qprofile doesn't start automatically, type Qprofile). Do not fill out the form yet.
- Start a second browser window (Ctrl-N) Netscape and go to Project II.1
- Start a third browser window (Ctrl-N) and go to Bowlus and Seitz paper
- Log on to your qlink account. One log on for each student using the computer.
- You should have 5 or more windows open now. Use Alt-Tab to go through open windows.
- Registration.
- Do step 2 of Proj II. Each person fills out the DLI form if they haven't done so already.
RESOURCE REQUIRED: data
- Each student check their qlink e-mail that the DLI password has arrived.
- Go to the Stata window and fill out the Qprofile form. Select
- Econ 452
- Codenames: enter student initials. For people sharing a computer, initials should be listed with commas or blanks in between.
- DLI password: enter the data user password just received by e-mail
- QED password: leave blank
- Own password: enter the letter x ("x").
When working on their projects, choose your own password. When working in class use the password of the day.
- In Stata, enter Qregstr.
- Fill in the form. The QED Archive password will be displayed. Remember it.
- Repeat Qregstr for each person.
- In Stata, type BREAK to finish the session. Choose "OK" to transfer the log file to edith.
- In Netscape, go to the 452 log file directory:
http://edith.econ.queensu.ca/statausr/logfiles/Econ452/.
Find your log file.
- Start a new Stata Qprofile session, fill out the form again entering the archive passwords
and the password of the day.
- The QED Data Archive.
- In Netscape, go to the QED Data Archive
- Find the Violence Against Women Survey, 1993.
- Find the data set file number for this survey
- Browse the archive to find the following info about the VAWS:
- the sample mean of the variable a17
- the description (variable label) of variable v37c
- what it means when variable dvlvgrgr=7 (value label for 7)
- Copy the answers and enter them into their Stata log as comments (command lines that begin with *).
Example, type in Stata:
- *The sample mean of a17 = -0.2334234
- *v37c is "favorite breakfast cereal"
- *dvlvgrgr=7 means "raised Catholic"
- Find the variables in the VAWS that would allow you to select
observations based on age, school attendance, marital status, and number of marriages
(see Section 2 of the Bowlus/Seitz paper.)
- Using Qextract
- In Stata, enter Qextract. Enter the file number of VAWS and
select "Expand Memory to fit ..."
- Choose to "Keep" the QEDid, perwght, prov, and the variables you
identified in the last section. Then go on to step 3, and extract how.
- Use the keep, drop, and count commands to
replicate the numbers 5260,87, and 432 in the paper.
- Wrapping up
- Enter BREAK and make sure you log file is transferred to edith.
- Exit all your open programs, especially your qlink connections.