Computer Hints
Links to Resources
Using SAS
A central part of this course is use of the SAS statistical package. The software will not be located on your computer. It runs on a server, and you control it over the Internet. SAS is available to students free of charge on UTM's tuzo and river machines. Undergraduates will use tuzo, and graduate students will use river. The full IP addresses are:
- tuzo: tuzo.utm.utoronto.ca
- river: river.utm.utoronto.ca
You will use your UTORID login and password. Undergraduate accounts are already set up, but graduate students will need to go to room A2039 (South Building) or call 905-569-4455 and ask them to set up your account.
Chapter 2 of the online textbook contains an introduction to SAS, and also to the unix operating system used by tuzo and river. Well, actually they use linux, but for the most part, the differences between linux and unix are just legal, moral and political. That is, they do not matter to most people.
You will be able to use SAS from the computer labs on campus. You can also run it over the Internet from home or some other remote location. This is convenient, but several issues are involved.
- For security reasons, you need to connect using software that probably did not come with your computer. The protocol is SSH, which stands for "Secure SHell." When you use SSH, information travels over the Internet in encrypted form, so hackers have trouble intercepting your password and other information. You can download a free copy of SSH below
- In the computer labs, SAS is easy to find in the menus. Running SAS this way starts up the SAS Display Manager. It's really quite nice once you get used to it, but
- It's much easier to learn how to use the Display Manager if you already know how to use SAS from the command line, the way it will be illustrated in lecture and the online text.
- The display manager does not work over SSH, so if you are running SAS from a remote location you will have to do so from the command line anyway.
If you want to connect from home but you do not already have an Internet Service Provider, U of T provides good inexpensive dialup access through
UTORDIAL.
There is a PC version of SAS, and you can get a copy and run it on your own computer if you wish. The SAS Institute makes a lot of money selling its software to big corporations as well as universities, research institutes and so on; SAS is expensive! But U of T has paid them a lot of money for a site license, and you can
get your own copy of SAS for just $110 a year. It locks up on July 1st
With an Internet
connection, SSH applications give you a text-only
connection to tuzo and other unix machines from your home
computer. From tuzo's prompt, you can run programs
such as SAS, R and
emacs. SSH is secure
because what you type and see on your screen is encrypted at one end and
decrypted at the other end. This prevents hackers from stealing your password
as you log on, and also prevents nosy people from spying on the highly
sensitive and confidential work you do in your Statistics courses.
Different SSH programs are recommended, depending on
the operating system that you are using. To use these programs, you must be
connected to the Internet, say with a broadband connection or via PPP over
your phone line.
- Linux: SSH is built in. Suppose your
login name on tuzo or river is botulism.
At the linux prompt, type
ssh -l botulism tuzo.utm.utoronto.ca
That -l is a lower case L. If your login name on your
linux machine is also botulism, you can
omit the "-l botulism" part.
- Mac OS X: SSH is built in.
Suppose your
login name on tuzo or river is botulism.
Start
up the terminal application on your Mac. At the prompt, type
ssh -l botulism river.utm.utoronto.ca
That -l is a lower case L. If your login name on your Mac is
also botulism, you can omit the "-l botulism"
part.
- Mac OS 7, 8 or 9: A number of free SSH
programs are available.
Mac SSH
is nice. To connect, note that the Host Name is
tuzo.utm.utoronto.ca. If you are a grad
student, use river.utm.utoronto.ca.
- MS Windows: A number of free SSH
programs are available. PuTTY is nice. You can Download it from here.
Recommended download: "Windows installer for everything except
PuTTYtel." To connect, put tuzo.utm.utoronto.ca
for host name. If you are a grad
student, put river.utm.utoronto.ca.
In any of these SSH programs, the first time you
connect to a host, you will be told that the program can't verify that this
host is really what it appears to be. Do you want to trust it?
SSH is just being sanely paraniod. Say yes.
A convenient way to get a file to your home
computer for printing is to email it to yourself.
Try
mail yourname@yourisp.com < fname
where yourname@yourisp.com is your email address and fname is
the name of the file, like hw3.lst.
Suppose you want to transfer fairly small amounts of
text between the unix machine and your PC. In a normal Windows application
like Explorer or Word, the edit menu has Copy and Paste items -- or you can
use control-C and control-V. But PuTTY has no menus, and
Control-C and control-V don't do what you might expect, especially if emacs is
running. But you can still copy-paste; here's how:
- When you select a block of text in PuTTY,
it's automatically copied into a buffer; you don't need to do
anything extra to copy it. So to copy from unix to your PC, select
in PuTTY, click over on a Word document or
whatever, and then choose Paste from the edit menu.
- In PuTTY, you paste by clicking on the right
mouse button. So, to get text from Word into
emacs, have emacs running in a
PuTTY window. In Word, select the text and
choose Copy from the edit menu. Click on the
PuTTY window (left click). Then right
click, and the text will be pasted in.