*=====================================. * Installation Instructions for * SPSS MACROS for Basic Inference. * Version: 2nd Sept2005 *=====================================. You need 4 files to install and run the macros: one.sav QUANTSCOMMANDS.SPS QUANTSMACROCALL.SPS QUANTSCOMMANDSUMMARY *----------------------------------------------------. *STEP 1. COPY THE FILES INTO THE C:\QUANTS DIRECTORY: *----------------------------------------------------. First create the directory "QUANTS" in the C: directory of your hard drive using Windows Explore or similar program. Then download the files from www.geebeejey.co.uk into this directory. These files are explained below: one.sav *--------. This is simply a data file with one observation = 1. Most of the macros open this file before attempting any calculations because SPSS requires a valid data to be open before any computations can be run. QUANTSCOMMANDS.SPS *-----------------. This is the file with all the macros in (macros are mini computer programs that enhance the facilities SPSS in some way). This file needs to run every time you open SPSS otherwise none of the commands will work. It can either be opened manually (by going to the file menu, opening the QUANTSCOMMANDS.SPS syntax file, selecting all and running all), or (preferably) by running the following MACRO CALL given in the next file, QUANTSMACROCALL.SPS. QUANTSMACROCALL.SPS *-----------------. This is the "macro call" file and simply has one line in it to tell SPSS to run the QUANTSCOMMANDS.SPS file: INCLUDE FILE = 'C:\QUANTS\QUANTSCOMMANDS.sps'. Note that it assumes that you've placed the QUANTSCOMMANDS.SPS file in a directory called "C:\QUANTS\" which will need to be created in Windows Explorer as already noted. I would also recommend that you place the QUANTSMACROCALL.SPS file in this directory. *QUANTSCOMMANDSUMMARY *--------------------. The third file is not essential but you might find it useful as a check that everything is working OK. It includes a summary of all the commands (listed below) which you can use to test that all the macros are installed correctly. *----------------------------------------------------. *STEP 2. RUN THE QUANTSMACROCALL.SPS FILE EVERY TIME YOU OPEN UP SPSS. *----------------------------------------------------. Every time you open up SPSS you need to run the QUANTSMACROCALL.SPS file. You only need to run the file once during any one SPSS session (once the macros are loaded into SPSS's memory, they remain there until you close SPSS). You can either run the QUANTSMACROCALL.SPS file by opening it each time and selecting the running the syntax, or you can simply type and run the following, INCLUDE FILE = 'C:\QUANTS\QUANTSCOMMANDS.sps'. A third alternative is to open the QUANTSCOMMANDS.SPS file itself, select a particular macro (or all the macros if you prefer), run it, and close the QUANTSCOMMANDS.SPS file. A fourth, and preferred, alternative, is to customise the SPSS Menu bar as explained below. *----------------------------------------------------. *STEP 3. CUSTOMISE THE SPSS MENU BAR. *----------------------------------------------------. If you customise the SPSS menu bar it will make it a lot easier to run the macro call. Each window in SPSS -- the Data window, the Syntax window, and the Output window -- has its own menu bar, and each can be customised. Here's how to customise the Syntax menu bar: (a) Open SPSS. Go to "Utilities", and select "Menu Editor" (this option is called "Edit menu" in earlier versions of SPSS). (b) In the "Apply to:" box of the Menu Editor, select "Syntax". (c) Now scroll down the list of Menu items in the left hand box of the Menu Editor, select "(End of Menu)" and click on the "Insert Menu" button on the right hand side. Then type "&Macros" and press on your keyboard to create a new Menu item. (d) Click on the plus sign to the left of your new Macros menu item, click on "(End of Macros Menu)" and click on the "Insert Item" button on the right hand side. Then type "&Inference" and press on your keyboard to create a new Menu item. (e) Under File Type in the centre box, click on "Syntax". (f) Now select the QUANTSMACROCALL.SPS file as the file you want to run by clicking on the "Browse" button, go to the C:\QUANTS direcotry and select "QUANTSMACROCALL.SPS". Then click OK. You have now added a new item to the menu bar of the syntax window. To run the macros, all you need to do is to open up a syntax file, click on "Macros", and select "Inference". The "macro call" will run, and all the macro commands should be available to you. For example, if you open a new syntax file and type and run the following line, pz_lt_zi (-2.897) . SPSS should calculate the probability that z is less than -2.897. The results should be posted to your output viewer in the following form: Run MATRIX procedure: Prob(z < zi) for a given zi zi Prob -2.89700 .00188 *----------------------------------------------------. *STEP 4. (OPTIONAL) OPEN AND RUN THE QUANTSCOMMANDSUMMARY.SPS FILE. *----------------------------------------------------. If you have correctly followed the above instructions, all the macro commands should run. It's a good idea to check that you have installed everything correctly. You can do this by opening the QUANTSCOMMANDSUMMARY syntax file, highlighting of all the sample commands and then run them. If you get any error messages, go through the above steps again. If you get stuck, email g@geebeejey.co.uk for advice.