How to run SHAZAM over the internetSimple SHAZAM programs can be run over the internet from the link on the SHAZAM homepage. Data files on the SHAZAM server can be accessed. Data files cannot be loaded and read from the user's computer. You can follow the exercise below to learn the basics of using SHAZAM. A data set with annual inflation rates for the 21 year period 1960 to 1980 for 5 countries (USA, UK, Japan, Germany and France) has been prepared in a data file. Step 1: Prepare a SHAZAM command fileA SHAZAM command file contains a set of commands that are instructions for SHAZAM. The command file can be prepared with a text editor such as Notepad. This editor is available with Microsoft Windows. It may be useful to place the editor icon on the desktop. SHAZAM commands for calculating summary statistics, including the mean and median, for the inflation rate data are:
Save your SHAZAM command fileOn your computer create a SHAZAM folder for your work and save the SHAZAM command file to this folder. Step 2: Run SHAZAMYou can run SHAZAM over the internet from the link on the SHAZAM homepage as follows.
Save your SHAZAM output fileThe SHAZAM output should be carefully reviewed. If error messages appear then the command file must be corrected and re-submitted to SHAZAM. You can save the output file to your SHAZAM folder. Step 3: Get More Practice with SHAZAMMore discussion on the analysis of the inflation rate data set with SHAZAM is available. The exercise below gives practice with two useful SHAZAM commands. The GENR command is used for creating new variables. The PRINT command is used to list the variables on the SHAZAM output. With the inflation rate data set consider calculating an annual "world inflation rate" for the period 1960 to 1980. A way of doing this is to compute an average inflation rate for each year. The SHAZAM commands below show how the GENR command can be used to construct a world inflation rate. Summary statistics are calculated with the STAT command.
Try running this example. Get the SHAZAM output and then answer the following questions. For the world inflation rate, which year has the highest inflation rate and which year has the lowest inflation rate ? How do you explain the differences in the mean and the median ? The GENR commandFor the GENR command the arithmetic expression that is given after the equal sign (=) is evaluated (any variable that is given in this expression must already exist). The result is saved in the variable that appears before the equal sign. If the result variable does not exist then SHAZAM will create it. If the result variable is already created then SHAZAM will replace the old variable with the new results. Arithmetic expressions are evaluated from left to right. However, some operators take priority. The rules are given in the GENR command documentation. Expressions in parentheses are always evaluated first. Therefore, to avoid confusion use as many levels of parentheses as desired. [SHAZAM Guide home] |