Problem set #1
1) Ensure that you are able to access the statistical program, SAS, at the university
"acadlabs". You will need to login using your PASSPORT YORK username and
password, so make sure you know what those are. If you have forgotten, I suppose you
can find out how to obtain them at the helpdesk in one of the computer labs.
There is one such computer lab in the William Small Centre, for example.
SOME FIRST NOTES ON USING SAS.
I'LL DO SOME DEMONSTRATIONS ON USING SAS IN CLASS SOON.
For now here's a brief description and some examples.
CLICK THE SAS 93 ICON TO RUN SAS
When your run SAS there are three windows.
The Editor window, the Log window and the Results viewer
Editor window: You enter your data set and the necessary
SAS statements to carry out a particular analysis
Log window: It will contain a listing of the analyses you
have run along with any errors you might have made so it is
important to examine this window after each analysis you do
to ensure there weren't any errors.
Results window: It contains the output from your analyses.
If you've made some critical errors, it might contain
nothing, or it might contain something that is meaningless.
(check the Log window!).
Setting up your data for SAS in the SAS editor.
1. The first few lines (or statements) in a SAS editor will
be used to tell SAS a number of things about your data set.
2. Then your data will follow those statements.
3. Then you'll tell SAS what analyses to carryout.
So here's an example data set (which you should try to run
So let's imagine I've gone out an measured the weight of
cellphones of 5 randomly sampled males and 5 females and I
want to obtain some descriptions descriptive statistics:
(For purposes of illustration, I will put keywords used by
SAS in bold but they don't need to be in bold in the actual
program you'll run).