Details of Steps to Perform
The following notation is used:
If you want to use your own computer to carry out tasks for this class, it is worthwhile using ITS Packman Software to download the free software you will need (e.g. Tera Term, WS_FTP, Netscape, Acrobat Reader).
Telnet is the protocol you use to access your account on qlink from a personal computer (either on campus or from home through a dial-up or cable internet connection). "ssh" is short of secure shell, and is a secure way to make a telnet connection so that your qlink password cannot be stolen. The program Tera Term in Packman is used to make a telnet or ssh connection. Telnet/ssh allows you to manage files that you store on your qlink account, including material you make available through the WWW. See ITS Accessing Qlink
Lab Steps:
- Log onto your qlink account.
- Start the file manager by (enter "filemgr"). Use the file manager to create a sub-directory called "test" (enter "L" then enter "mkdir test"). Highlight "test" on the screen and press "Enter".
- Use the Pico editor to create a file in the test sub-directory called "file1.xxx" and save the file. To do this, enter "L" and then enter "pico test/file1.xxx". Enter a few lines of text into the file. Then save the file and exit (press "Ctrl o Enter" then press "Ctrl x").
- Use the file manager to rename "file1.xxx" to "file2.yyy" (highlight "file1.xxx" on the screen, enter "R" and then enter "file2.yyy").
- Send an e-mail message to yourself using Pine (or to the person next to you in the lab). NEW: You don't have to use Pine. You can use web-based qlink e-mail.
- Read the message using Pine.
- Send an e-mail to me at ferrallc@post.queensu.ca from your qlink account with the subject "Econ 360".
Lab Steps
- Start WS_FTP and connect to your qlink account.
- Press "ASCII" button to use ASCII transfer mode.
- Select "test" in the Remote System window.
- Highlight "file1.yyy" and press "<--" button(download).
- Highlight "file1.yyy" in the Local System window and press "Rename" button, then enter "file2.yyy".
- Highlight "file2.yyy" in the Local System and press "-->" button(upload).
- Press "Refresh" button in the Remote System window.
- Rename "file2.yyy" to "file3.yyy" in the Remote System.
- Press "Binary" button to use Binary transfer mode.
- Highlight "file3.yyy" and press "<--" button (download).
- Highlight "file2.yyy" and press "View" button in the Local System.
- Highlight "file3.yyy" and press "View" button in the Local System.
- Switch to your Tera Term session and compare the size of the two files "file1.yyy" and "file2.yyy" using filemgr.
Lab Steps
- Inside filemgr, press "L" and then enter "mkwww". Or, at the "====> " prompt, simply enter "mkwww".
- Inside filemgr, highlight "www" and press "Enter". You should see one file there, called "index.html". Highlight "index.html" and enter "V" to view its contents. Enter "Q" to quit and return to filemgr.
- Switch to your WWW browser (Netscape or Explorer). In the address or location window, enter "http://qlink.queensu.ca/~<your account>" where <your account> is your qlink i.d. (like 1cf0). What you should see is the generic homepage created by the mkwww command and placed in index.html.
- Inside filemgr and viewing the www directory, make a subdirectory called econ360 (enter "L" and then enter "mkdir www/econ360" or enter the "mkdir www/econ360" command directly).
- Switch your WWW browser and modify the location/address to "http://qlink.queensu.ca/~<your account>/econ360". You should see "Forbidden You don't have permission to access /~<your account>/econ360 on this server."
- Back in filemgr press "L" and enter "pico www/econ360/index.html". Enter "This is a first draft of my Econ 360 Homepage." Press "Ctrl o Enter" and then press "Ctrl x".
- Then press "L" and enter "publish". See publish in the HTML Tutorial.
- Switch back to your browser and re-load the econ360 directory.
- Use your browser to "View Information" on the file. Note that it is possible to see the day and time the file was last modified. We use this feature to check that you complete assignments on time.
Lab Steps:Here is an example log file.
- Browse to http://edith.econ.queensu.ca/data
- Find the data set numbers for the five or six years (1976 to 1998) and the month of the LFS of your choice.
- Start "Stata" in Dunning 350 or MC B405.
- Extract the variables:
NEW: where you replace "??" with the DataSet number for the LFS year and month. You find the data set number in the archive when you get to the "Sample Index" page. For example, the January 1977 LFS is data set #99, which you see if you go to its index page.Qextract sex age_12 lfsstat ftptmain fweight, ds(??) exec
- Keep only the demographic group you want:
NEW: where you replace "??" with the numerical code for the sex and age group you wish to report statistics for that year. You can get the numerical code by looking at the "codebook" for the variable:keep if sex==?? & age_12==??
From this output we see that the age group "30 to 34" has a numerical code of 4, which is the value you would use in the. codebook age_12 , t(20) age_12 -------------------------------------- five-year age group of respondent type: numeric (float) label: age_12 range: [1,12] units: 1 unique values: 12 coded missing: 0 / 95194 tabulation: Freq. Numeric Label 13644 1 15 to 19 11724 2 20 to 24 11023 3 25 to 29 8922 4 30 to 34 7576 5 35 to 39 7133 6 40 to 44 6857 7 45 to 49 6679 8 50 to 54 5684 9 55 to 59 4886 10 60 to 64 4189 11 65 to 69 6877 12 70+
keep
command.- Do a weighted tabulation of the variables:
The variabletab1 lfsstat ftptmain [fw=fweight]
fweight
is the number of Canadians.- Calculate the UE rate, the LFP rate, and the Part-time work rate from the output. NEW: The definitions of these concepts are given in the pages of the reserved textbooks, in the pages indicated in the course outline."
- Repeat the steps for the same cohort (different value of age_12) for as many years as available. Note: there are problems with the LFS data in the archive for years 1999 and 2000. Stop at 1998 or before. For example, if you report statistics for the age group 30 to 34 in 1977, then you should report statistics for the age group 35 to 39 in 1982. In this way you will be tracing out the labour market experiences of a group of Canadians born in the same five year period over the careers. In this example, it would be the birth cohort 1947 to 1952. Note: to run Qextract on another data set you have to type
clear
to remove the data still left from the previous extraction..- Create a table with the values you have computed and write a brief paragraph describing the results.
On your qlink account create a file called .forward (the period '.'
at the beginning is important). In that file simply put your forwarding
address. For example, I have an account at qed.econ.queensu.ca,
but on that machine I have a .forward file which contains "ferrallc@post.queensu.ca"
(only the text, not the quotes). Any mail sent to my qed.econ account
gets forwarded to post automatically.
qlink is a Unix machine, which means that you can control who can read
and write to the files you store in your qlink account. This makes
it possible to put an assignment in your www/econ360 directory and not
let it be visible to people using the WWW. So you can post your assignment ahead of the deadline without letting other students see your work.
For a general discussion of "permissions" on a Unix machine, see Controlling Access.
chmod og-r www/econ360/ec360hw1.html
Then try loading or Re-loading that file using Netscape or Internet Explorer. It should say "Forbidden -- you don't have permission to access ... on this server."
To make the file accessible you can just run the "publish" command, or turn access on directly by typing:
chmod og+r www/ec360hw1.html
Note:
"chmod" stands for "change mode"
The "og-r" option says to "turn off (-) read access (r) for accounts
in your group (g) and all other accounts (o)"
The "og+r" option says to turn read access back on for other accounts.
You can see the effect of the chmod command by getting a detailed listing
of the www directory. At the "===>" prompt type "ls -l". In
front of each file name you will see something like "-rw-r--r--".
This says your account has both read and write access to the file. Other
accounts have simply read access. After running "og-r" on a file,
it's attributes will be listed as: "-rw-------", indicating that
other accounts no longer have read access. For a complete description
see see Controlling Access.