Manuel d'Utilisation Simstat - Copie
Manuel d'Utilisation Simstat - Copie
Manuel d'Utilisation Simstat - Copie
for Windows
User's Guide
WARRANTY
The SIMSTAT product is licensed "as is" without any warranty of merchantability or fitness for
a particular purpose, performance, or otherwise. All warranties are expressly disclaimed. By
using the SIMSTAT product, you agree that neither Normand Péladeau nor anyone else who has
been involved in the creation, production, or delivery of this software shall be liable to you or any
third party for any use of (or inability to use) or performance of this product or for any indirect,
consequential, or incidental damages whatsoever, whether based on contract, tort, or otherwise
even if we are notified of such possibility in advance. (Some states do not allow the exclusion or
limitation of incidental or consequential damages, so the foregoing limitation may not apply to
you). In no event shall Normand Péladeau's liability for any damages ever exceed the price paid
for the license to use the software, regardless of the form of claim. This agreement shall be
governed by the laws of the province of Quebec (Canada) and shall inure to the benefit of
Normand Péladeau and any successors, administrators, heirs, and assigns. Any action or
proceeding brought by either party against the other arising out of or related to this agreement
shall be brought only in a PROVINCIAL or FEDERAL COURT of competent jurisdiction located
in Montréal, Québec. The parties hereby consent to in personam jurisdiction of said courts.
COPYRIGHT
Copyright © 1996 Normand Péladeau. All rights reserved. No part of this publication may be
reproduced or distributed without the prior written permission of Normand Péladeau, 2414
Bennett Street, Montreal, QC, CANADA, H1V 3S4.
Trademarks
IBM-PC and PC-DOS are registered trademarks of International Business Machines Corporation.
Microsoft Windows and MS-DOS are registered trademarks of Microsoft Corporation.
Excel is a product of Microsoft Corporation
SPSS/PC+ and SPSS for Windows are a registered trademark of SPSS Inc.
dBase and Paradox are registered trademarks of Borland International.
Quattro Pro is a registered trademark of Corel Corporation
Lotus 1-2-3 and Symphony are registered trademarks of Lotus Development Corporation.
Other product names mentioned in this manual may be trademarks or registered trademarks of their
respective companies and are hereby acknowledged.
Acknowledgments
Special thanks to Marc Aras, Jean Bélanger, Jacques P. Beaugrand, DeWitt Kay, Warren L. Kovach, Mark
Thomas Lindemann, Ian D. Livingstone, Rashid Nassar, Ben Riga, Roel van Schaik, George Schwartz,
Mark Von Tress, Todd Woodward, and several others for their invaluable support, comment, feedback,
and advice during the development of this program.
TABLE OF CONTENTS
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Using this manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Manual conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1- Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The SIMSTAT package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Installing SIMSTAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Making a backup copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Starting the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Startup options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
The working environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Changing the active window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Working with pull-down menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Working with dialog boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Status bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6 - Statistical analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Assigning variables for statistical analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Binomial test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Bootstrap analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Full analysis bootstrap analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Breakdown analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Correlations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Crosstabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Descriptives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Factor analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Frequencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Friedman Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
GLM ANOVA/ANCOVA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Inter-raters analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Item Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Kolmogorov-Smirnov 1 Sample Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Kolmogorov-Smirnov 2 Samples Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Kruskal-Wallis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Listing cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Logistic regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Mann-Whitney U test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
McNemar test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Median test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Moses test of extreme reactions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Multiple regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Multiple responses analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Nonparametric matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
One sample chi-square test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Oneway ANOVA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Regression analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Reliability analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Runs test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Sensitivity analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Sign test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Single-case design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Time-series analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
T-test analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Wilcoxon test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
INTRODUCTION
Welcome to SIMSTAT for Windows. This program is designed to provide an easy to use, yet
powerful statistical package for scientific, business and engineering applications as well as for
teaching purposes. It provides unique features that facilitate data analysis as well as other tasks
such as data preparation, output management, and data presentation.
SIMSTAT provides a wide range of statistics including summary statistics, crosstabulation, inter-
rater agreement statistics, frequency and breakdown analysis, n-way analysis of variance and
covariance, paired and independent t-tests, linear, nonlinear, and multiple regression analysis,
time-series analysis, and many nonparametric analyses. Also, SIMSTAT provides powerful
bootstrap simulation analyses. These simulations are based on resampling procedures and can
be used to provide nonparametric estimates of sampling distributions, to assess the stability of
multivariate solutions or to perform nonparametric power analysis.
The program also includes a powerful script language that allows automation of statistical
analyses and creation of interactive tutorials, demonstration programs with multimedia features,
and even computer assisted testing or interviewing programs.
Working with the notebook - The notebook window provides an efficient way to browse
and manage outputs. This section provides basic instructions for navigating the
notebook, editing its contents, and using tabs and the index to manage the outputs.
Statistical Analysis - This chapter provides a description of every statistical analysis
appearing under the STATISTICS menu. To allow you to quickly find the information
you need, the statistical commands are presented in alphabetical order.
Working with charts - This section describes of the steps involved in the creation,
modification, printing and saving of charts.
Using scripts - This section introduces you to various tasks that may be performed with
script files such as how to open a existing script file, how to execute it, or how to use the
recoding feature to easily create script.
Script language reference - This section outlines the syntax conventions of the various
commands and options, and provides an alphabetical listing of all script commands.
Customizing the TOOLS menu - This section provides instructions on how to add
programs to, delete programs from, or edit programs using the TOOLS menu.
Setting the program preferences - This section provides a description of all global
options affecting the program’s working environment, file handling, and printing.
Appendices - The last part of this manual contains 4 appendices that deal with the
following topics:
Appendix A - Description of xBase syntax rules used in the FILTER, SORTING
and COMPUTE commands and of each xBase function.
Appendix B - Various suggestions for further reading on statistics.
Appendix C - Program limitations.
Appendix D - Obtaining technical support.
Manual conventions
The following conventions are used throughout the manual:
• MONOSPACE is used to indicate what is to be typed on the keyboard.
• bold text is used to highlight keywords, and identify text displayed by the program.
• Words between the less than ( < ) and the greater than ( > ) characters indicate a key to
be pressed. For example, <Enter> mean you have to press the Enter key.
• A dash (-) between key names means you have to press two keys simultaneously. For
example, <Ctrl-x> means that you have to press the <Ctrl> key and hold it down while
you press the x key.
GETTING STARTED - 3
1- GETTING STARTED
In this chapter, we'll get you started using SIMSTAT by showing how to install the program and
how to perform some basic operations. This chapter also includes a short tutorial that will guide
you through an easy-to-follow example of an analysis. This tutorial will allow you to quickly
become familiar with the steps required to perform statistical analyses. If you are already
familiar with the operation of SIMSTAT, you may skip this section.
System requirements
SIMSTAT requires a computer running Windows 3.1 or later, 4MB or more of available RAM,
and 3.5 MB of hard disk space. A mouse is optional, but highly recommended.
The program does not need a numeric coprocessor but will use it if available. However, a
coprocessor is strongly recommended for analysis of large samples or for extensive bootstrap
resampling analysis.
Installing SIMSTAT
This manual assumes that your hard disk is drive C: and that the installation disk is on drive A:.
You can change the drive and/or directory by making the appropriate substitutions in these
instructions.
Startup options
You can edit the program properties dialog box to add a script filename to the SIMSTAT’s
parameter list. When you do this, SIMSTAT will automatically execute the script when it starts
up. By creating shortcuts (or icons) of the program with different script file names as parameter,
it becomes possible to execute those scripts from the desktop with a single mouse click.
1) The main menu bar at the top of the screen gives access to nine pull-down menus from
which commands can be evoked.
2) The tool bar provides quick mouse access to frequently used commands.
3) The status panel, located at the bottom of the screen, displays various information about
the program's operation.
4) The central part of the screen is the working space.
Click on any item to position the cursor on it. You may also use the following keyboard keys to
navigate through dialog boxes:
Key Effect
To move directly to an item, press the <Alt> key and the underlined letter in the associated text.
The action needed to edit the values of the various options depends on the type of input field.
Options panels can contain several types of input field:
Edit box - The Edit box is a rectangular box in which you type a value using the keyboard.
They are used to enter a string of characters, a number, a filename, etc.. When you are
positioned on such a field, a blinking text-cursor appears. The following table lists the
keys that can be used while editing a data entry field.
Key Effect
<Esc> Aborts the editing process and restores the previous value.
8 - SIMSTAT for WINDOWS
List boxes - A list box allows you to select a string from a list of valid possibilities. A list
box can contain a vertical scroll bar. To make a selection, scroll, if necessary, then click
the item you want.
Drop-down list boxes - A drop-down list box is similar to a list box, but its items are
hidden from view. To select an item from the list, click on the downward pointing
arrow on the right side of the box, scroll, if necessary, then click the item you want.
Check boxes - A check box is a small square box with a text description to its right.
Check boxes operate independently of one another. You can turn an option ON or OFF
by clicking in the box. If an option with a check box is turned on, an “X” appears in
the box.
Radio buttons - A radio button is a small round button. Radio buttons are used in groups
to present mutually exclusive options. Click the button to turn the option on; to turn it
off, select a different radio button. If a radio button option is active, it contains a dark
circle.
Spin buttons - Sometimes an edit box will be presented with spin buttons to its right.
This indicates that a numeric value is expected. You can type this numeric value using
the keyboard or use the spin buttons to quickly increment or decrement the value shown
in the edit box.
After the values have been edited to suit your needs, you have to click on the OK button (in some
dialog boxes this button is named APPLY) to accept those values and proceed. If you want to
leave the dialog box, restore the previous values, and suspend the current operation, just click on
the CANCEL button. A HELP button is often displayed to give you access to the context-
sensitive help file. Some dialog boxes also provide additional command buttons, which give you
access to special functions.
GETTING STARTED - 9
Toolbar
The main toolbar is displayed across the top of the application window, below the menu bar. The
toolbar provides quick mouse access to many commands used in SIMSTAT.
To hide or display the toolbar, you can use the Preferences menu command and set the Show
Toolbar check box accordingly.
When the mouse cursor rests over a toolbar button for more than one second, a small help hint
appears, displaying a short description of this button. To turn these help hints on or off, use the
Show Tool Hints option in the Preferences dialog box.
The following list describes the various icons used by SIMSTAT.
Click To
The following eight buttons may be present no matter which window is currently active.
However, their action differs, depending on which window is active.
Create a new file. You may use this button to clear the content of the currently active
window.
Open an existing file of the same type as the active window. SIMSTAT displays the
Open dialog box, in which you can locate and open the desired file.
Save the active window document with its current name. If you have not named the
document, SIMSTAT displays the Save As dialog box.
Cut the selected text (Notebook or Script window) or selected cell (Data window)
Copy the selected text (Notebook or Script window) or selected cell (Data window)
Erase the selected text (Notebook or Script window), selected cell (Data window) or
chart. When viewing the notebook index, pressing this button erases the currently
selected page.
10 - SIMSTAT for WINDOWS
At the right end of the toolbar, you will see four buttons representing SIMSTAT’s four different
windows.
Status bar
The status bar, at the bottom of the screen, displays information about the current session
including the number of selected variables, and the amount of free Windows resources and
memory. It also displays useful information about the current output page (date and time of
creation, data file name) or about the current chart (data and time of creation). The left-most
panel contains a gauge that is sometime used to indicate the progression of a task.
Getting help
No matter where you are in SIMSTAT, you can get more information about the task you're
working on by pressing <F1>. This function key accesses SIMSTAT's context-sensitive help.
You may also click on the HELP button from any dialog box to obtain help on the various
options available in the dialog box.
Alternatively, you may use the various commands in the HELP menu to display a table of
contents of available help topics or search for a specific topic.
From the help window, you can copy, paste, annotate, and print help text using commands in the
FILE and EDIT menu.
TUTORIAL - 13
This dialog box contains, among other things, 3 different list boxes. The one located to the left
of the dialog box contains a list of all variables in the data file. The selection of variables for
upcoming analysis is carried out by moving the proper variable’s name(s) from this list to the
independent or dependent list box. When doing descriptive analyses on separate variables, it
does not matter whether a variable is assigned as dependent or independent. For the current
example, we will thus move the variables to the independent variable list box. To achieve this:
& Highlight the AGE variable (age of the child) in the variable box by clicking once on it.
& Click on the button just beside the independent list box to move the highlighted
variable name to this list box.
& Using the same procedure, move the variable SIBLING to the independent list box.
NOTE: If you select the wrong variable, you can remove the variable from the Independent list
box by clicking on the variable name. When a name in the independent list box becomes
highlighted, the arrow of the button beside this box changes direction, indicating that pressing
this button will put the variable back in the variable list box.
& Click on the OK button to close the dialog box and activate the variable selection. If you
want to cancel the operation and restore the previous variable assignments, click on the
CANCEL button.
TUTORIAL - 15
Using this dialog box, we will instruct the program to print, for every selected variable, a
frequency table sorted in ascending order of value, detailed descriptive statistics and a histogram.
To achieve this:
& Activate the Frequency Table check box (a check will appear in it).
& Set the Sort By option to Value and the Type option to Ascending.
& Activate the Descriptive Statistics check box.
& Deactivate the Confidence Interval and Percentiles Table check box.
The dialog box looks similar to the one shown above.
All graphing options are located in the second page of the dialog box. To activate this page, click
on the Charts tab at the bottom of the dialog box. To produce a histogram, make sure that the
histogram check box is the only one containing a check mark. If other options are enabled, click
on those check boxes to deactivate them.
After setting the proper options, you must activate them and tell SIMSTAT to perform the
analysis by selecting the OK button. SIMSTAT computes the requested statistics and appends
the numerical results to the Notebook window, while the histograms are automatically added to
the Chart window.
16 - SIMSTAT for WINDOWS
/ Rather than moving from one button to the other in order to move forward and backward in
the notebook pages, you can click on the same button using the right button of the mouse to
perform the reverse action.
To view the histograms produced during the same analysis, activate the chart window. The chart
window displays the last chart produced.
To display the previous chart in the window press the <Ctrl-P> combination key or click on the
icon.
To display the next chart in the window, press the <Ctrl-N> combination key or click on the
icon.
To select a specific chart from a list of all charts, click on the button to display a list box and
select the chart from the list.
When an image is displayed in the Chart windows, it is possible to customize its axis scaling or
labels, change the colors and fonts, and modify several other features of the chart. All these
customization options can be accessed from the CHART menu. It is also possible to save these
charts on disk, export them either to files or to the clipboard, or print them. (For more
information on the various chart options available, see the section entitled Working with Charts
on page 153).
TUTORIAL - 17
The Filter edit box allows you to specify a condition that must be met in order to include the case
in the analysis. The sex of the child has been stored in a numeric variable named SEX using 1
to designate boys and 2 for girls. To select the boys for the next analysis, type the following
condition:
SEX = 1
You may also use the filter building buttons located at the top of this dialog box to specify this
condition. To build this filtering condition using these buttons:
& Click on the SEX variable in the list box located to the left of the dialog box
& Click on the ‘=’ relational operator button to add an equal sign to the equation.
& Click on the ‘1' button of the numeric keypad to insert this value after the equal sign.
To exit this dialog box and activate the filtering condition, click on the APPLY button.
18 - SIMSTAT for WINDOWS
The first step necessary to perform our regression analysis is to change the currently selected
variables. In the previous analysis, the variables were selected prior to the display of the analysis
dialog box. For this example, we will alter the variable assignment while editing the regression
analysis option. To achieve this, click on the CHOOSE button to activate the Variables
selection dialog box. Using the previous instructions, assign the AGE and HOURSTV variables
to the Independent list box and move the AGGRESS variable to the Dependent list box. Click
OK to confirm this variable selection and return to the analysis dialog box.
Then, using the proper keys or mouse actions:
& Set the Type of Analysis option to Linear.
& Set the numeric field beside Confidence Interval to 90 in order to obtain a 90% confidence
interval on beta weights.
& Select a 2-tailed test by clicking on the proper radio button.
To obtain a scatterplot that will allow you to visualize the relationship between the dependent and
independent variables, set the SCATTERPLOT option to Graphic.
TUTORIAL - 19
Disable the remaining options so that the dialog box looks similar to the one displayed above.
When you click on the OK button, SIMSTAT calculates two separate linear regression equations
with AGGRESS as the dependent variable and AGE and HOURSTV as predictors.
You may browse through the results of this analysis if you so desire.
Note: By default, SIMSTAT is configured to start printing each notebook page at the top of a new
page and to print 2 charts per page. To change these options, select the PREFERENCES
command from the FILE menu (see section Setting Program Preferences at page 235).
This section introduces you to various tasks that may be performed on data files such as how to:
& Open an existing data file.
& Create a new data file.
& Set the variable appearance and definition (display width, missing values, value labels, etc.).
& Enter and edit values in the data grid.
& Filter records.
& Sort the data grid on one or several variables.
& Import from and export to other applications.
& Save and restore archived copies.
& Restrict the default access to the data file.
To open an existing data file, select the DATA | OPEN command from the FILE menu. This
opens an open file dialog box as shown below.
When this dialog box is evoked, the program points to the default data directory and displays in
the File Name list box all available data files in this directory. To open a file, double click on its
name or select it and then click on the OK button.
If the name of the data file you want to open is not displayed, type the filename in the File Name
box (including drive and path if necessary) and select the OK button.
You may also use the following components to locate the data file:
& If the file is on a different disk, click on the down arrow of the Drives list box to display
available drives and select the disk where the file is located.
& If the file is in a different directory, double-click on the directory names in the Directory (or
Folder) to move through the directory tree.
If the file name is displayed in the File Name list box, double-click on it to open the file, or select
it and click on the OK button.
If you want to open a data file used previously, click on the down arrow button at the right side
of the File Name edit box and select the filename.
22 - SIMSTAT for WINDOWS
SIMSTAT for Windows uses the industry standard xBase file format as its own format. Thus,
the program can read DBF files created by almost any program that can create these files.
SIMSTAT supports dBase files containing up to 1022 fields provided that the maximum record
length is less than 64k. SIMSTAT will also create several associated files in order to store
important information about the data file. The following list describes the various file extensions
that are used:
Extension Description
*.STR Files with an .STR extension contain all variable information defined by the user
such as variable labels, missing values and display format (display width, number
of decimal places, alignment). This file also contains information about access
restrictions set by the user.
*.VLBFiles with this extension contain all value labels defined by the user.
*.SET Set files contain information about defined sets of variables.
*.IDX Files with an .IDX extension are automatically created by SIMSTAT to keep
track of the filtering and sorting conditions set by the user.
*.FPT Files with an .FPT extension are used to store texts entered in memo fields.
/ When moving data files to a new location, you must also move these related files and place
them in the same directory as the DBF data file. To facilitate this task, you may use the
ARCHIVES | BACKUP and ARCHIVES | RESTORE commands which will allow you to
store all the necessary files in a single archive file and will automatically restore those files
in the location of your choice.
DATA FILE OPERATIONS - 23
To move the caret to a specific cell, you can click on that cell with the mouse. You can also use
the following keys to navigate in the spreadsheet:
<Up> Move one cell up.
<Down> or <Enter> Move one cell down. When you reach the last line and hit the
down arrow key, a new case is created.
<Right> or <Tab> Move one cell to the right. When you reach the end of a row,
these keys bring you to the first column of the next row. If you
reach the last cell and hit one of these keys, a new row is
created.
<Left> or <Shift-Tab> Move one cell to the left. If the cursor is on the first column,
pressing either of these keys brings you to the last column of the
previous row.
<PgUp> Move one screen up.
<PgDn> Move one screen down.
<Home> Move to the first variable (column).
<End> Move to the last variable (column).
<Ctrl-Home> Move to the first record.
<Ctrl-End> Move to the last record.
<Ctrl-G> Search for a variable name.
You can also move to a specific value or string within a selected column or anywhere in the
spreadsheet by evoking the FIND command in the EDIT menu.
24 - SIMSTAT for WINDOWS
To create a new data file, select the DATA | NEW command from the FILE menu. When this
command is evoked, a dialog box similar to this one appears:
The first step you need to take in order to create a new data file is to define the structure of the
file. The File Structure dialog box is a grid entry field type where each row represents a variable
in the new data file. This dialog box lets you define various attributes of the new variables such
as their name, whether they will contain numeric, alphanumeric values, or dates and their
physical width. You can also enter, for each variable, an alphanumeric description up to 60
characters.
Name - The first column of the spreadsheet allows you to enter a name for each variable.
Each variable name must be unique (within that data file). Valid variable names begin
with a letter and may contain letters, numbers or underscore characters. Punctuation
marks, blank spaces, and other special characters are not permitted. The maximum
variable name length is 10 characters.
Type - Each variable in the data file must have a type. To specify a variable type, move the
cursor to the second column and enter the letter corresponding to the proper data type.
SIMSTAT for Windows supports the following types:
DATA FILE OPERATIONS - 25
/ While SIMSTAT for Windows can perform some analyses such as frequency or
crosstabulation on character variables, it is often preferable to use numeric
variables, especially when the number of different values of this variable is limited.
For example, rather than storing the sex of the respondent as a character variable
and using ‘male’ and ‘female’ or ‘F’ and ‘M’, it is advisable to assign numeric
values to this information (for example 1 for male and 2 for female). To facilitate
the interpretation of these numeric values, SIMSTAT provides a way of associating
an alphanumeric description of up to 60 characters with each numeric value of a
variable (see page 28).
Length - The variable length specifies the maximum number of characters that can be
stored in the variable. Variable lengths for date and logical field are automatically set
to 8 and 1 respectively. The maximum length for a character variable is 254, while the
maximum length for a numeric variable is 19.
Decimal - The decimal column lets you define the number of decimal places for numeric
variables. Note that the length of a numeric variable with decimals includes the decimal
point, a leading zero, and an optional minus sign. The minimum length for a numeric
variable that contains one decimal position is therefore 3 (unsigned) or 4 (signed). The
maximum number of decimal places permitted by SIMSTAT is 17.
Description - The description column allows the entry of a variable label up to 60
characters long that can be used to describe in more detail the content of the variable.
You may leave this column blank if you wish, since it is always possible to later add or
edit those labels by using the DEFINE VARIABLE command.
Use the <Up> and <Down> arrow keys to move around the variable list and the <Left> and
<Right> arrow keys or the <Tab> and <Shift-Tab> keys to position yourself on the field that
you want to modify.
Defining variables
In addition to the specification of the physical structure of the variable, it is also possible to
specify a variable`s display format (width and number of decimal places), missing values and
value labels. To define these attributes use the following steps:
& Position the cursor on the variable you want to define.
& Choose the DEFINE VARIABLE command from the FILE menu or click on the button
on the upper left corner of the data grid. This displays the Variable Definition dialog box as
shown below:
The and icons located at the bottom of the dialog box can be used to move to the
previous or the next variable in the data file.
To locate a specific variable, click on the Find button. A dialog box appears that allows you to
select a variable name from a list of all variables in the data file. To quickly locate a variable
name, you can also type its first letters until the variable name appears in the list box.
28 - SIMSTAT for WINDOWS
Read only - When checked, this option prevents a variable from being modified. This
option is useful to prevent accidental or unauthorized changes to the values of a
variable. (To prevent the modification of an entire data file, use the DATA |
SECURITY command from the FILE menu or open the file as Read Only).
Rename button - You can use this button to change the name of the current variable.
When you click this button, you will be asked for a new variable name. This name must
not exist in the current data file and should follow the basic rules for valid variable
names.
Alignment - The alignment option lets you specify whether the values of this variable
should be displayed on the grid aligned to the left, at the center, or flushed to the right
of the column. By default, numeric values and dates are flushed to the right of the
column while strings are aligned to the left.
Display width - The display width option lets you adjust the display width of the current
variable. This option is used exclusively to control how the variable is displayed in the
data grid and does not affect the physical size of the variable or its internal precision.
While it may be possible to set this option to zero or one character, the actual minimum
display width is equal to the number of characters in the variable name. For example,
the minimum display width of a variable named AGE will be 3.
Decimals - When the variable is numeric, the decimals option is used to specify how many
decimal places to display in the data grid. This option is used exclusively to control how
numeric values are displayed in the data grid and does not affect the internal precision
of the variable.
Missing values - In SIMSTAT, any blank cell is treated as a missing value (also called
a “system missing value”). However, you may also want to specify the reason for the
missing value. For example, in a survey, some respondents may not respond to a
specific question because it does not apply to them. They may also refuse to answer, or
may have simply forgotten to answer this question. For each numeric variable, it is
possible to define up to 3 numeric values that will be treated as missing. When
performing statistical analyses or data transformations, all cases containing a blank field
or any one of these numeric values will be ignored.
By default, these numeric values are treated as discrete values. However, It is possible
to exclude a range of values by treating the second and third missing values as lower or
upper limits. For example, if you have a variable containing the ages of respondents,
you may choose to exclude all subjects under 18 years by setting the second missing
value to 17 (or 17.99 if the variable is measured on a continuous scale with up to 2
decimal places) and selecting the less than or equal radio button. You may also
exclude cases equal or above a specific value by specifying the upper limit in the third
missing value and setting its radio button to more than or equal.
Variable label - This option lets you enter an alphanumeric description of the variable of
up to 60 characters. SIMSTAT will use this label when displaying statistical results or
charts.
DATA FILE OPERATIONS - 29
Value labels - The value labels feature allows you to assign to each value of a numeric
variable a string of up to 60 characters. To define new value labels for the current
variable, click on the Edit button next to the value label option. The following dialog
box will appear:
/
this variable.
You may also use this feature to copy value labels from one variable to another. To
do this, follow the previous instructions to link the current variable to the one from
which you want to copy labels. The labels should appear in the value labels list.
Then, remove this link by setting the linked to option to none.
DATA FILE OPERATIONS - 31
Data can be entered and edited directly within SIMSTAT with the use of a data sheet. Here are
some quick descriptions of the steps needed to perform specific data editing tasks:
To erase a value:
& Position the cursor on the cell you want to erase and press the <Del> or the
<Backspace> key.
To add a row:
& Move to the last row, then press the <Dn> arrow key.
To delete a record:
& Position the cursor on the record (or row) you want to delete.
& Choose DELETE RECORD from the DATA menu.
NOTE: You should be aware that the record is not physically removed from the file but
is simply tagged as deleted and hidden to the user. To permanently remove the deleted
records, use the DATA | PACK FILE command from the FILE menu.
& Click on the OK button to create these new variables and add them at the end of the
current data set.
32 - SIMSTAT for WINDOWS
& Highlight the names of the variables you want to delete and click on the button to
move them to the Variables To Delete list box.
& To delete successive variables, click on the first variable, drag the mouse cursor down
the list to highlight multiple variables, and then click on the button.
& Click on the OK button to proceed to the deletion of all variables listed in the Variables
To Delete list box.
DATA FILE OPERATIONS - 33
Filtering records
The FILTER RECORDS command temporarily selects cases according to some logical condition.
You can use this command to restrict your analysis to a subsample of cases or to temporarily
exclude some subjects. You may also use this feature to perform data transformations on a
subsample of cases. The filtering condition may consist of a simple expression, or include many
expressions related by logical operators (i.e. AND, OR, NOT).
The condition expression should be a valid xBase expression evaluated as true or false and may
not exceed 240 characters. To obtain more instructions on expression operators, evaluation rules
and supported xBase functions see Appendix A.
When selecting the FILTER RECORDS command, a filter builder dialog box is displayed (see
below). You can directly type the filtering expression in the Filter edit box using the proper
syntax, or use any elements displayed on the upper part of the Filter Records dialog box to build
a valid expression.
To restore previously used filtering conditions, click on the down arrow button located to the
right of the Filter edit box.
34 - SIMSTAT for WINDOWS
Once a filtering condition has been entered you can apply the filter and leave this dialog box by
clicking on the APPLY button. If the filter expression is invalid, a message is displayed and
the exit is not performed.
To temporarily deactivate the current filter expression, click on the IGNORE button. The filter
string will be kept in memory and may be reactivated by choosing the FILTER RECORDS
command again.
To exit from the dialog box and restore the previous active filtering condition, click on the
CANCEL button.
Usually, when part of the filtering expression is highlighted, pressing any keyboard key, or
clicking on any variable name or numeric button will replace the highlighted text with the
character or expression associated with this key or button. However, when choosing a
function requiring a parameter enclosed between parentheses, the highlighted text will not
be deleted but will be used instead as the new parameter of this function.
.AND. - The .AND. operator instructs SIMSTAT to include only the cases for which both
expressions are true. For example,
GROUP = 2 .AND. INCOME > 28,000
will cause the program to select only those cases from GROUP number 2 that have an
INCOME greater than $28,000.
.OR. - The .OR. operator instructs SIMSTAT to evaluate both logical expressions and to
include cases for which either expression is true. For example,
GROUP = 2 .OR. INCOME > 28,000
will cause the program to select cases from GROUP 2 and cases from other groups only
if they have an INCOME greater than $28,000.
.NOT. - The .NOT. boolean operator can be used to negate a condition or exclude records
meeting a specified criteria. For example,
.NOT. GROUP = 1
will cause SIMSTAT to exclude all records for which GROUP equal 1.
Sorting records
SIMSTAT provides two different ways to arrange the records (or cases) of a data file in numeric
or alphabetic order.
Simple sort
The easiest and quickest way to sort the records on the values of a single variable is to double-
click on the variable’s name displayed on the top row of the grid. The first time you double-click
on a variable’s name, the records are immediately sorted in ascending order on this variable.
Double-clicking a second time on the same column title sorts the records in descending order.
Complex sort
It is also possible to sort the records of a file using several variables. To achieve this, select the
SORT RECORDS command from the DATA menu. When activated, this command brings a
dialog box similar to the one used for filtering records. This dialog box allows you to create a
custom sorting expression by selecting information and elements displayed on the form. This
expression can include almost any supported xBase function.
The sort builder dialog box contains the following elements:
Variable name list box - Double-clicking on a variable name from the list box located
on the left of the dialog box inserts that name in the edit box at the current caret
position.
Function list box - A list of valid xBase expressions is displayed to the right of the dialog
box. Double-clicking on an xBase function from the box inserts that function at the
current caret position. When a function requires one or more arguments, the argument
section remains highlighted. To replace the highlighted text with a value, an expression
or a variable name, simply type the proper text on the keyboard, or select a variable
name or function.
Relational operations and numeric buttons - Selecting any relational operation or
numeric button inserts the corresponding symbol in the edit box.
Usually, when part of the sorting expression is highlighted, pressing any keyboard key or
clicking on any variable name or numeric button will replace the highlighted text with the
character or expression associated with this key or button. However, when choosing a
function requiring a parameter enclosed between parentheses, the highlighted text will not
be deleted but will be used instead as the new parameter of this function.
DATA FILE OPERATIONS - 37
Once a valid sorting expression has been entered, you may use the Sort Order option to specify
whether the records should be sorted in ascending or descending order.
To execute the sorting and leave the dialog box, click on the APPLY button. If the sorting
expression is invalid, a message is displayed and the dialog box remains displayed.
To temporarily deactivate the current sorting expression, click on the IGNORE button. The
sorting string is kept in memory and may be reactivated by choosing the SORTING RECORDS
command again.
Press the CANCEL button to abort the current sorting operation, leave the dialog box and restore
the previous sorting order.
Examples:
When the following sorting expression is used,
BIRTHDAY
and the Ascending radio button is activated, the records are sorted in ascending order by the
variable birthday.
SIMSTAT allows you to import data files from other statistical programs, spreadsheet and
database applications, as well as from plain ASCII data files (comma or tab delimited text). The
program can read data stored in the following formats:
SIMSTAT for DOS (v1.0 - v3.5)
SPSS/PC+
SPSS for Windows
PARADOX (v3.0 - v5.0)
LOTUS 123 (v1.0 - v5.0)
SYMPHONY (v1.0 - v1.1)
EXCEL (v2.1 - v5.0)
QUATTRO PRO (v1.0 - v6.0)
COMMA SEPARATED VALUES (Windows and DOS)
TAB SEPARATED VALUES (Windows and DOS)
You will find below detailed information about specific file formats such as their formatting
requirements (if any), the supported features and limitations.
When exporting a data file, SIMSTAT will use the current filtering condition to determine which
records will be exported. The active sorting order will also be used to control the record sequence
in the new file format.
To export data to any of these applications:
& Set the filtering and sorting conditions of the active data file to display the records as they
should be exported.
& Choose the DATA | EXPORT command from the FILE menu.
& Select the file format you want to create using the Save As File Type drop down list.
& Type a valid filename with the proper file extension.
& If necessary, use the Directories and Drives boxes to specify the storage location of your
choice.
& Click on the OK button.
You will find below a list of available file formats along with information about the export
function limitations.
There are circumstances when two or more data files need to be merged together. For example,
you may need to append data from additional subjects or from another time period to the end of
an existing data file or you may need to add new information on existing individuals by adding
new variables. Simstat provides two merging methods to either add new records or new variables
to an existing data file.
Access privileges are useful for controlling access to sensitive data in a file, whether or not the
file is shared on a network. For example, you may want to prevent modification of data files by
other users, or simply prevent accidental modification by yourself.
SIMSTAT allows restrictions to be placed on the type of activities that can be performed on a
data file. Full access to the data file can be regained by providing a single password.
When first accessed, all options are checked, indicating that no restriction to the data file has
been defined.
& Disable the privileges you want to associate with the password. For example, if you disable
the Delete Existing Variables and Delete Existing Records options, it will be possible for any
user to edit data, create new variables, or modify the variable definitions (missing values,
labels, display widths, etc.). However, they will not be able to delete any existing record or
variable in the data file.
44 - SIMSTAT for WINDOWS
& Type the password that will give full access to the data file and click on the OK button to
exit the dialog box.
NOTE: You can limit default access for users without the need to provide a password by leaving
the Full Access Password edit box empty. By doing this, the access will be limited every time
the data file is opened, but it will still be possible for anyone to modify this access privilege by
altering the options in this Security dialog box.
CAUTION: All options modified when regaining full access become the new default access
values. You should take care to reset these values before closing the data file if you want to
maintain this default limited access to the data file.
DATA FILE OPERATIONS - 45
During a research project, data files are frequently modified (cleaning, recoding, mathematical
transformation, etc.). At some point you may need to return to a previous version of an existing
data file to recover lost variables or cases that have been transformed or deleted, or just to make
routine verifications. In order to do this, several successive backup copies of this data file should
be created and kept. Another reason to make backup copies of data files is to prevent the
accidental loss of an entire data file caused by a hardware failure or software malfunction.
SIMSTAT provides a simple archiving procedure that allows one to quickly create backup copies.
This procedure stores a copy of the currently active data file and all its related files (structure
definition, value labels, variable sets, etc.) in a single compressed file. SIMSTAT uses the
industry standard Zip format as its own archive file format allowing you manage those archive
files outside of SIMSTAT using any application than can manipulate these files. Also, the high
level of compression achieved on typical SIMSTAT data files (usually more than 90-95%) allows
you to create backup copies of large data files on a single diskette, or keep several copies of your
data file on your hard drive without sacrificing precious disk space.
Another benefit of this archiving feature is to facilitate the transfer of your data file and all its
related files to another computer by creating a single file that includes all related files, and can
easily fit on a single diskette.
& Click on the ADD button and enter the new set name. You can enter a string of up to 20
characters to describe this new set.
& Move all the variables that will make up the new set to the list box on the right of the screen.
DATA FILE OPERATIONS - 47
& Click on the OK button to exit from the dialog box or click on the ADD button again to
create another set.
To modify a set definition
& From the Current Set drop down list box, select the set you want to modify.
& Add or remove the variables from the set.
To delete a set
& From the Current Set drop down list box, select the set you want to delete.
& Click on the DELETE button and enter the new set name.
48 - SIMSTAT for WINDOWS
4 - DATA TRANSFORMATION
Often you may need to create new variables to represent global scores based on several responses
given by a subject or to create composite indices based on several indicators. Preliminary analysis
of existing variables may also reveal either coding errors, or an inadequate data distribution for
the kind of analysis you want to perform. SIMSTAT provides several powerful commands to
transform values of existing variables or create new variables by performing mathematical
operations on existing ones. This chapter presents data transformation features currently
available in SIMSTAT.
TheTransformation submenu contains various commands to perform transformation of existing
variables or to create new variables from computation on existing ones.
SIMSTAT provides a special feature that allows you to inspect the distribution of a variable and
assess the effect of common transformations on the data distribution. To use this feature, position
the data grid cursor on the numeric or date variable you want to examine and select the
VARIABLE STATISTICS command from the DATA menu. A dialog box will appear
displaying various statistics including mean, median, standard error of the mean, variance,
standard deviation, skewness, kurtosis, minimum and maximum values, etc., as well as 3 graphs
(i.e. a box-plot, a histogram and a normal probability plot).
By default, the distribution statistics and the graphs displayed depict the untransformed values
of the variable. A list box allows one to temporarily transform those values using common
transformation formula and examine the resulting distribution.
Navigation keys at the lower right side of the window allow you to quickly move from one
variable to another.
To perform a transformation on your data, see section COMPUTING VALUES or QUICK
TRANSFORM below.
50 - SIMSTAT for WINDOWS
Computing values
The COMPUTE command allows the transformation of existing variables or the creation of
numeric variables by performing numeric transformations on existing variables. This command
offers more than 50 operations and functions including numerical operators, trigonometric
transformations (cos, sin, log, etc.), statistical functions (mean, minimum, maximum across
variables or cases, etc.), date, and random number operations. Conditional transformations can
also be performed using an IF-THEN-ELSE logical structure.
To perform a numeric transformation, select the TRANSFORM VARIABLE | COMPUTE
command from the DATA menu. When this command is evoked the following dialog box
appears:
Store in - This edit box allows you to specify the target variable where the computation
results will be stored. If the target variable already exists, the program will ask you if
you want to replace its values with those produced by the transformation. If the variable
does not exist, the program will ask you to confirm the creation of this new variable.
If you answer yes to this question, the new variable will be appended to the left end of
the data sheet. (see “Setting Program Preferences” on page 235 for information on how
to disable these confirmation dialogs). When a new numeric variable is created, the
program needs to know in advance its physical size and precision. The current default
size and number of decimal places used to store the result of a transformation is
DATA TRANSFORMATION - 51
indicated in the upper right corner of the Transformation group box. To modify these
values, click on the precision dialog box and enter the new default size and number of
decimal places.
Conditional transformation - This check box allows you to choose between a simple
computing formula or a conditional transformation. When this option is disabled, a
single edit box (i.e., Formula) is shown and the transformation is performed on all
currently selected records. Enabling this option allows you to perform a conditional
transformation using an IF-THEN-ELSE logical structure. The single edit box is
replaced by 3 edit boxes allowing you to specify a logical condition and two
transformation formulas. (see “conditional transformation” below).
Formula - This field contains the computing formula used to compute the value of the
target variable. This formula can contain existing variable names, numeric constants,
arithmetic operators or any supported numeric, trigonometric or statistical functions.
You can type the numeric transformation in the Formula edit box directly, using the
proper syntax, or use any element displayed on the upper part of the Variable
Transformation dialog box to build a valid expression. To restore previously used
numeric transformations, click on the down arrow button located at the right of the
Formula edit box.
Once a valid target variable and a numeric expression have been entered you can leave this dialog
box and perform the transformation by clicking on the OK button. If the transformation
expression is invalid, a message is displayed and the dialog box remains displayed.
To exit from the dialog box without performing a transformation, click on the CANCEL button.
You will find below a list of valid symbols and functions along with a short description of each,
as well as some additional syntax information.
Arithmetic Operators
You can use any of the following symbols in a transformation formula.
+ Addition
- Subtraction
* Multiplication
/ Division
^ Exponentiation
Constants
PI 3.1415926535897932385
TAN() Tangent
TRUNC() Truncate
MEAN(Q1 Q2 Q3 Q4 Q5)
or MEAN(Q1..Q5)
SIMSTAT will compute the mean of values stored in the five specified variables of the current
record (missing values are excluded). To obtain a statistic on all selected records see the next
section “Statistical Functions (across records)”.
The following statistical functions are computed on a single variable for all currently selected
records. For example, if you enter:
VMEAN(AGE)
SIMSTAT will compute the mean of the values stored in the AGE variable for all selected
records (missing values are excluded). To compute a statistic on several variables for each record
individually, see the previous section “Statistical Functions (across variables)”.
VMIN() Minimum
VMAX() Maximum
ZSCORE() Normalized score
LAG() Lag
Date Functions
Most date functions can be computed on either date or numeric variables. Numeric variables are
automatically transformed into a date corresponding to the number of days since 1/1/0001. The
TODAY function does not have any argument, while the YRMODA function takes 3 arguments
separated by commas. Each arguments can be either a numeric variable, a constant, or an
expression. All other functions require a single argument that can consist of a date, a numeric
variable, a constant or an expression.
This expression can also include any xBase function, provided that the final result of
the expressions can be evaluated as true or false (For more information on valid xBase
expressions, see appendix A.
Then / Else - The THEN and ELSE edit boxes contain the transformation expressions you
want the program to apply. See the previous section “Building a valid transformation
expression” for information on syntax rules and available functions. If the logical
expression entered in the IF edit box is evaluated as true, the transformation expression
in the THEN edit box is computed; if not, the expression in the ELSE field is used. If
an edit box contains no transformation expression, the existing value remains
unchanged. For example, the following setting:
Will replace, for each record where the character variable SEX is equal to “Female”, the
current value stored in variable HEIGHT with this same value multiplied by 1.3; all
other records remain unchanged.
56 - SIMSTAT for WINDOWS
Quick transformations
The QUICK TRANSFORM command allows immediate transformation of the current variable
using various functions.
For the square root, natural logarithm and inverse transformations, if the variable contains values
less than 1, SIMSTAT asks whether to add a constant in order to bring this minimum to 1.
DATA TRANSFORMATION - 57
The RECODE command provides an easy way to make multiple changes to the values of numeric
variables, or to collapse values of a continuous variable into categories. To activate this
command:
& Position the data sheet cursor on the variable you want to recode
& Select the TRANSFORM VARIABLE | RECODE command from the FILE menu.
Store in - This edit box allows you to specify the target variable where the computation
results will be stored. By default, the value is set to the name of the variable containing
the values that will be used for recoding. To store the result in another variable, change
this text box to the new target variable name. If you keep the original variable name or
specify an existing variable name, the program will ask you if you want to replace its
values with those produced by the transformation. If the variable does not exist, the
program will ask you to confirm the creation of this new variable.
Expression - The recode expression can consist of several transformations enclosed in
parentheses, each including one or more values (or a value range), an equal sign, and
the new value. For example:
(1 = 2) (2 = 1) (3 4 5 = 3) (6..10 = 4) (ELSE = SYSMIS)
Each value on the left of the equal sign is recoded into the value on the right. The
recoding proceeds from left to right and stops after a transformation occurs. The
SYSMIS and MISSING keywords can be used to represent missing values, while the
ELSE keyword represents all non specified values.
Once a valid target variable and a recoding numeric expression have been entered you can leave
this dialog box and perform the recoding by clicking on the OK button. If the recoding
expression is invalid, a message is displayed and the exit is not performed.
To exit from the dialog box without performing the recoding, click on the CANCEL button.
58 - SIMSTAT for WINDOWS
The RANK command replaces the values of a variable by their rank. If ties occur, the mean rank
of tied values is used. Missing values are excluded.
To transform a variable into ranks:
& Position the data sheet cursor on the variable you wish to transform into ranks.
& Select the TRANSFORM VARIABLE | RANK command from the DATA menu.
& Enter the new variable name under which the rank should be stored and click OK to proceed
to the transformation.
The DUMMY RECODING command automatically creates as many dummy variables as needed
to represent the values of a nominal variable. To create such dummy variables, position the
cursor on the nominal variable you wish to recode and select the TRANSFORM VARIABLE |
DUMMY RECODING command from the DATA menu. The following dialog box will appear:
Variable prefix - The variable prefix option allows you to enter a prefix that will be used
to generate dummy variable names. The maximum length of this prefix is 7 characters.
Numeric values going from 1 up to the number of variables required will be appended
to this prefix.
Type of recoding - This option provides a choice between two different methods for
recoding nominal variables.
Dummy - The dummy (or binary) coding involves the creation of dichotomous vectors
to represent membership in the categories of nominal variables such that subjects in a
given category are assigned 1, while non members are given a score of 0. The number
of dummy variables needed to contain all the information of a nominal variable equals
the number of different values in this variable minus one. While most analyses
involving dummy variables require you to enter only those g-1 dichotomous variables,
DATA TRANSFORMATION - 59
you may need to perform separate analysis for each category. When the dummy coding
type is chosen, a check box appears allowing you to create this last dichotomous
variable. For example, if you recode a variable containing 3 different values, setting
this check box will create 3 dummy variables, one for each group. If this option is
disabled, the procedure will create only 2 variables.
Effect coding - Effect coding is similar to dummy coding, except that the last group
is assigned -1s in all vectors instead of 0s.
When you click on the OK button, the program reads all active records and asks you to confirm
the computation of the required number of dichotomous variables. If variables with similar
names exist in the database, the confirmation dialog box will display the number of existing
variables that would be overwritten as well as the number of variables that need to be created by
this command. Click on the YES button to confirm the creation and overwriting of variables.
Click on NO to abort the procedure.
To exit from the dialog box without performing the recoding, click on the CANCEL button.
Numeric recoding
Most statistical analyses require variables that can be expressed as numeric values (such as
numeric, date, and logical data type). The NUMERIC CODING command automatically creates
a numeric variable to express the values of a string variable. To create this numeric variable,
position the cursor on the string variable and select the TRANSFORM VARIABLE | NUMERIC
RECODING command sequence from the DATA menu.
When this command is evoked, a dialog box appears asking you the name of the new numeric
variable. If you specify a non existing variable, the program will ask you to confirm the creation
of this new numeric variable. If you click on the YES button, this variable will be created and
will contain integer values representing each unique alphanumeric value found in the original
string variable. Value labels corresponding to each numeric value will be automatically created
and stored with the variable.
If the name of an existing variable is provided, you will need to confirm the overwriting of values
in this variable. When the variable name supplied is the same as the original string variable, the
program assumes that you want to transform the current string variable into a numeric variable
and will erase the original variable and add a new numeric variable of the same name. This new
variable will be located at the left end of the data worksheet.
60 - SIMSTAT for WINDOWS
To move the caret to a specific location, you can click with the mouse on that location. You can
also use the following keys to navigate in the notebook:
It is possible to locate a specific string on the current page or in the entire notebook by choosing the FIND
command in the EDIT menu or by pressing <Ctrl-F>.
You can also use the page flip icons located at the bottom of the notebook to move within the notebook
pages.
Left click on the icon to move to the next page or click on the right button to move to the previous
page.
Left click on the icon to move to the previous page. Pressing with the right button moves you to the
previous page.
& Select the PAGES | NEW command from the EDIT menu or click on the button.
If the current page is the first page of a section, a dialog box will appear giving you a choice to
enter the new page before or after the current page.
62 - SIMSTAT for WINDOWS
Note: You may also use the notebook index to delete single pages or to erase an entire section.
SIMSTAT automatically creates an index of all analysis output stored in the notebook. This
index is useful to get an overall view of the notebook content and to quickly locate and move to
a specific page. It also allows you to restructure the contents of the notebook. To view the
notebook index, click on the Index tab at the bottom of the notebook.
To erase a page
& Select the page you want to erase.
& Select the DELETE command from the EDIT menu or click on the button.
WORKING WITH THE NOTEBOOK - 63
A typical research project or analysis task can result in hundreds, or even thousands of pages of
statistical output. Using tabs can facilitate the management of your output by allowing the
creation of sections in the notebook. For example, you may choose to create sections for different
types of analyses (descriptive analysis of data, reliability analysis of instruments, regression
analysis to test your hypothesis, etc.), or for analysis performed on different subsamples or at
different time periods, etc.
& Select the TABS | ADD command from the EDIT menu or click on the icon.
& Enter the new tab name and its page location.
& Press <Enter> or click on the OK button to create the new tab.
Once your tabs are created, you can quickly move to a specific section by clicking on its tab at
the bottom of the notebook. When activated, a section become the default output location. This
means that the output of all analyses performed while this section is active will be appended to
the end of this section.
& Select the ERASE command from the EDIT menu or click on the icon.
Suggestion
It is advisable to keep a copy of the data used with each analysis output. To achieve this, you can
create a special DATA section and use the LIST command to create listings of all data sets used
in your analysis. It may also be a good idea to keep a log of the analysis commands and options
used with your statistical results. To achieve this, simply use the RECORD SCRIPT feature to
automatically generate those commands and copy the content of the script window to an empty
notebook page.
SIMSTAT provides a feature that allows you to reduce the number of decimal places of numeric
values within a selected area or in the active page of the Notebook. To round the values, perform
the following steps:
& If necessary, select the portion of text containing the numeric values you want to round.
& Select the ROUND command from the EDIT menu. The following dialog box will appear:
& Specify the number of decimal places to which you want to round numbers.
& Set the radio button to Current Page or Selected Text depending on whether you want to
round values for the entire page or only in the selected portion of it.
& Select the OK button to exit the dialog box.
STATISTICAL ANALYSIS - 65
6 - STATISTICAL ANALYSIS
This reference chapter provides a description of the Variable Selection dialog box followed by
a description of every statistical analysis that appears in the STATISTICS menu. To allow you
to quickly find the information you need, the statistical commands are presented in alphabetical
order. The sole exceptions to this rule are the BOOTSTRAP resampling procedures that are
described under the BOOTSTRAP heading.
Use CHOOSE X-Y from the STATISTICS menu to select the variables to be used in subsequent
analyses. You can also press the <F3> function key or click on the button to access this
function.
When this command is selected, the program displays a dialog box.
66 - SIMSTAT for WINDOWS
The list box located at the left shows the available variables. The drop down list at the top of this
box allows you to display only specific types of variables (such as numeric, string, date, etc.) or
the variables belonging to a user defined set of variables. The Independent and Dependent list
boxes located on the right of the dialog contain the variables that will be treated as independent
and dependent. By default, the variable names are displayed in the same order as they appear
in the data file. You may also use the Sorted check box to display the variable names in
alphabetical order.
While most statistical analyses in SIMSTAT require you to distinguish between dependent
and independent variables, some analyses do not require such a distinction. This is the case
for several commands involving a single variable per analysis such as LIST, DESCRIPTIVE,
FREQUENCY, TIME-SERIES, BINOMIAL, CHI-SQUARE TEST, and RUNS TEST.
With those commands, variable assignments to the dependent or independent list boxes are
simply ignored and the procedure is applied successively to all the independent variables
followed by all the variables assigned to the dependent list box.
The RELIABILITY, the ITEM ANALYSIS and all multivariate analyses available from the
OTHER submenu (i.e. Factor analysis, cluster analysis, etc.) also do not make a distinction
between dependent and independent variables, and will include all variables in both lists in
a single analysis. However, when performing a split-half reliability test using the
RELIABILITY command, the two list boxes are used to determine which variables will be
included in each versions of the instruments.
Select the variables you want to remove and click on the button. To quickly remove a
single variable from the list, double click on the variable name.
Binomial test
The BINOMIAL TEST allows you to assess whether the observed number of cases in a
dichotomous variable is the same as that expected from a specified binomial distribution. The
dialog box allows you to specify whether the comparison will be made on the observations above
or below the mean, the median or a user-specified cutoff value, or to select observations equal to
two values. It also allows specification of the test proportion.
OPTIONS
Cutoff point - This list box allows you to specify how the values of a variable will be
dichotomized. The cutoff point used can be either the mean, the median or a user-
specified value. All observations falling below the cutoff point form one group, and all
observations equal to or above the cutoff point form the other group. The value mode
can also be used to restrict the analysis to two groups defined by distinct values.
Values - This option is used only if you have selected Value as a cutoff point. If only one
number is provided, it is used as a cutoff point. All observations falling below this value
form one group, and all observations equal to or above the cutoff point form the other
group. If two numbers are specified, cases with values equal to the first number form
one group and cases with values equal to the second number form the second group.
Providing no values allows the analysis of dichotomous variables.
Proportion - This option allows the specification of the test proportion. This value must
lie between 0 and 1.
Mean = 27.5424
Proportion = .5000
Cases
Bootstrap analysis
The BOOTSTRAP submenu gives you access to an innovative and extremely powerful statistical
technique called bootstrap simulation. This technique, developed by Efron (Efron, 1981;
Diaconis & Efron, 1983) can be used to assess various properties of statistical estimators such
as their accuracy, their sampling variability, etc. Typical applications include the computation
of nonparametric estimates of sampling distributions, the assessment of the stability of statistical
estimators, and the construction of nonparametric confidence intervals. SIMSTAT also allows
the computation of nonparametric power estimates and Type I error rates for various estimators.
The following section provides a short non-technical introduction to the bootstrap technique
followed by a description of SIMSTAT's particular implementation of bootstrapping
methodology. Potential applications for researchers, statistical consultants, and for students and
teachers of statistics are also presented. For further information about bootstrap methods and its
applications, you can read the articles of Efron and his colleagues (Diaconis & Efron, 1983;
Efron, 1981; Efron & Gong, 1983; Efron & Tibshirani, 1993). Wasserman and Bockenhold
(1989) also provide an excellent introduction to bootstrap methodology, while Stine (1989) offers
a comprehensive presentation of its potential applications.
The number of bootstrap samples for a single analysis can range from 10 to 100,000. The output
of a simulation analysis can consist of various results, including descriptive statistics, frequency
tables, histograms and percentile tables. The program also computes bootstrap confidence
intervals. For estimators which can be tested for significance, SIMSTAT also displays
nonparametric power estimates for up to four alpha levels. Power estimation with the bootstrap
technique is straightforward: while performing bootstrap on a given data set, the proportion of
redrawn samples that led to a statistically significant estimator (at some given alpha level) is
computed and used as a power estimate. In addition to simulation results, the program displays
the value of the seed used to initialize the random number generator. This value may then be
used to regenerate the same data at a later time, or to compare various estimators using the same
bootstrap samples.
70 - SIMSTAT for WINDOWS
The FULL ANALYSIS bootstrap command also offers the possibility to compute almost any
available statistical analysis on successive bootstrap samples and displays the entire results of
those analyses.
EXTENSIONS TO BOOTSTRAP
To achieve an even greater range of potential application, SIMSTAT implements two extensions
to standard bootstrap simulation.
Random sampling
Another aspect of bootstrapping is that it rests on the assumption that the original sample is
representative of the population. SIMSTAT offers a modified bootstrap sampling process that
rests on the null assumption that there is no difference or relation between variables in the
population. While in bootstrap sampling the drawing is achieved by drawing vectors of scores
for a particular subject, the RANDOM SAMPLING procedure draws individual subject scores
for each variable independently. Consequently, while a standard bootstrap simulation on a
correlation between two variables would yield coefficients that fluctuate around the correlation
that exists in the original sample, the RANDOM SAMPLING procedure would produce
correlations that vary around a null correlation. In this procedure, the proportion of redrawn
samples that lead to a statistically significant estimator at a given alpha level is used to assess the
Type I error rate.
Possible applications
We have already seen that standard bootstrap resampling can be use to obtain various measures
of sampling variability such as nonparametric confidence intervals. The ability to alter the
bootstrap sample size and to replicate the condition of the null hypothesis makes possible
numerous new applications. The following paragraphs give some examples of such applications.
Teaching Tool
As a teaching tool, bootstrap simulation would be effective in illustrating to new statistics
students concepts such as sampling theory or the central limit theorem. It would provide a
simulation of the sampling process of an experiment, allowing the students to visualize the
sampling variability of given estimators. By increasing or decreasing sample size, the student
can observe how these changes affect the variability of estimators or the statistical power of an
experiment. Additionally, bootstrap would be effective in demonstrating how outliers can affect
estimation and how data transformation can improve population estimates.
The dialog boxes of the ONE VARIABLE, TWO VARIABLES, and RANDOM SAMPLING are
very similar and have comparable options. The following section presents those options and
provides an indication when an option is specific to an analysis.
OPTIONS
RESAMPLING PAGE
Estimator - This option displays a drop down list from which you can choose a specific
measure that will be computed on each bootstrap sample. When the ONE VARIABLE
command is chosen, you can select from a list of seven estimators (see above), while the
TWO VARIABLES and the RANDOM SAMPLING command offer a choice between
28 estimators.
Values - Some estimators performed on independent samples require the specification of
two values of the grouping (independent) variable. Those two values will be used to
define two groups or will be treated as minimum and maximum values of the grouping
under consideration (Option only available for ONE VARIABLE and RANDOM
SAMPLING commands).
Number of samples - This option allows you to choose the number of times resampling
is carried out. This number can range from 10 to 100,000.
Initial seed value - SIMSTAT automatically provides a “seed” value for the random
number generator that drives the simulation analysis. Alternatively, the Initial Seed
Value option can be used to specify a seed value. To instruct SIMSTAT to randomly
72 - SIMSTAT for WINDOWS
choose a new seed value, click on the Shuffle button. SIMSTAT outputs the seed value
with the simulation results. This value can be used to regenerate the same data at a later
time, or to compare various estimators using the same bootstrap samples.
Same as original - When this option is enabled the size of each bootstrap sample drawn
from the original data is automatically adjusted to the size of this original sample. When
disabled, you can use the Size option to specify how large each bootstrap sample will
be. The sample size can range from 1 to 100,000 cases.
OUTPUT PAGE
Descriptive statistics - Enable this option to obtain a table of various descriptive
statistics. This table includes the following statistics: mean, standard error of the mean,
sum, mode, median, standard deviation, variance, skewness, kurtosis, minimum,
maximum, and range.
Confidence intervals - The Confidence Intervals option allows you to display the 90%,
95%, and 99% confidence intervals of the coefficient. The program also displays bias-
corrected confidence intervals that apply a correction to the interval to rectify situations
where there is too much imbalance in the proportion of bootstrap estimates falling on
each side of the observed statistic (median biased). The Width option allows you to
define a fourth interval.
Percentile table - This option displays a percentile table whereby the number of cases in
the sample is divided into equal categories. These categories indicate the percentage
of cases that fall below the corresponding value of the variable. The number of
categories computed in this table is determined in the Number option and is displayed
with the corresponding variable values. For example, if you set this option to 4, the
program will rank all valid cases, divide them into four equal groups, and then display
the values that delimit the 25th (lower quartile), 50th (median) and 75th (upper
quartile) percentiles.
Histogram - This option produces a graphic display of the distribution of a numeric
variable. When this option is activated, the program first separates the values into non-
overlapping intervals of equal width, and then plots bars that represent the relative
frequencies of each interval. The Number of bars option allows you to specify how
many bars (or intervals) to be plotted. You can also superimpose a Normal curve on
the histogram, and visually assess how close your data distribution is to normal.
Type I error rate - This option gives the proportion of samples that have reached a
specified alpha level. The standard display includes the proportions for 0.10, 0.05 and
0.01 alpha levels. The Alpha option lets you specify a fourth Alpha level (option only
available for the RANDOM SAMPLING command).
Power estimate - The Power Estimate option gives the proportion of samples that have
reached a specified alpha level. The standard display includes the proportions for 0.10,
0.05 and 0.01 alpha levels. The Alpha option lets you specify a fourth Alpha level
(only available for the TWO VARIABLES command).
STATISTICAL ANALYSIS - 73
The FULL ANALYSIS bootstrap procedure allows one to perform various statistical analyses
such as frequency analysis, crosstabulation or multiple regression on bootstrap samples. The
program provides a complete analysis for each bootstrap sample. Specific statistics can then be
extracted from the listing file with the use of a text editor and then stored in a new data file for
further analysis.
The dialog box allows you to choose which analysis to perform, the sample size and the number
of samples to be taken from the original sample. A second dialog box allows you to control how
the analysis is to be performed and what statistics are to be printed.
OPTIONS
Analysis - Choosing this option evokes a drop down list from which you can choose a
specific analysis to be performed on each bootstrap subsample.
Same as original - When this option is enabled the size of each bootstrap sample drawn
from the original data is automatically adjusted to the size of this original sample. When
disabled, you can use the Size option to specify how large each bootstrap sample will
be. The sample size can range from 1 to 100,000 cases.
Number of samples - This option allows you to choose the number of times resampling
is carried out on the data. This number can range from 1 to 32,000.
Seed - SIMSTAT automatically provides a “seed” value for the random number generator
that drives the simulation analysis. Alternatively, the Initial Seed Value option can be
used to specify a seed value. To instruct SIMSTAT to randomly choose a new seed
value, click on the Shuffle button. SIMSTAT outputs the seed value with the
simulation results. This value can be used to regenerate the same data at a later time,
or to compare various estimators using the same bootstrap samples.
74 - SIMSTAT for WINDOWS
Breakdown analysis
The BREAKDOWN procedure computes descriptive statistics for sub-groups of the sample. This
procedure can display a single line of statistics including the means, standard deviations,
minimum and maximum values for the dependent variable (Y) within groups defined by the
values of the independent variables (X). More detailed statistics can also be obtained for each
group and for the entire sample. The dialog box also allows you to restrict the number of groups
to a specified range and to obtain a multiple box-&-whisker plot that can be used to compare the
distribution of the independent variable among several sub-groups.
OPTIONS
Range of X - This section requests two values that will be treated as minimum and
maximum values of the grouping (or independent) variable under consideration. Each
discrete value of the independent variable that falls within this range defines a distinct
group. If those fields are left blank, all values of the independent variable will be
included.
Statistics - When set to Brief, the mean, standard deviation, minimum and maximum
values, and the number of cases are displayed on a single line. To obtain additional
statistics, such as the skewness, kurtosis, mode, median, etc., set this option to Detailed.
Box-&-Whisker plot - The Box-&-Whisker Plot option allows you to obtain a multiple
box-&-whisker plot that can be used to compare the distribution of the dependent
variable among several sub-groups.
Correlations
The CORRELATION command produces a matrix of Pearson product-moment correlation
coefficients for all pairs of dependent and independent variables. You can request either exact
probabilities for the coefficients or a display of asterisks that indicate the probability levels
attained. You can also tell the program to calculate probabilities using one- (directional) or two-
tailed tests (non-directional) and to display cross-product deviation and covariance tables.
OPTIONS
Type of matrix - When set to X vs Y, the correlation matrix displays correlations between
all variables assigned as independent against all variables assigned as dependent. The
square matrix option produces a matrix displaying correlations between all selected
variables, without taking into account whether they were selected as dependent or
independent.
Confidence intervals - The confidence intervals option allows you to display confidence
intervals of the correlations. The interval Width is expressed as a percentage between
1 and 99%.
Display probabilities values - This option determines the content of the correlation
matrix. When disabled, the display includes up to 3 asterisks (*) to indicate the
significance level attained for each correlation coefficient. If you enable this option, the
program prints a matrix including the number of cases used to compute each coefficient
and the estimated probability of the correlation.
Significance test - This option specifies whether the probability of the correlations is
based on a one-tailed (directional) or two-tailed (non-directional) test.
Missing values - The Missing Values option allows you to specify whether you want to
exclude cases with missing values by either PAIRWISE or LISTWISE deletion. If you
select pairwise deletion, a case is excluded if it has a missing value on either of the two
variables used to compute a given correlation coefficient. However, this case can be
included in the computation of other coefficients. Listwise deletion excludes cases
containing missing data from the computation of all the correlations included in the
matrix.
Cross-product covariance matrix - This option displays cross-product deviation and
covariance tables for the data.
76 - SIMSTAT for WINDOWS
Crosstabs
The CROSSTAB command produces a standard contingency table for two variables where rows
represent the dependent variable values and columns represent the independent variable values.
The dialog box allows you to include various statistics in the table (count, row, column, or total
percentage, etc.) and obtain various measures of association for nominal, ordinal and interval
levels of measurement.
OPTIONS
TABLE PAGE
Contingency table - This option requests the output of a contingency table.
Sort by - Use this option to tell the program whether rows and columns of the table should
be sorted by the values of the variable or by frequency.
Type - The type option allows you to specify whether rows and columns of the contingency
table should be sorted in ascending or descending order.
Table content group - The Table Content group box allows you to request other statistics
in addition to frequencies to be included in the cells of the table. To obtain the desired
statistics, enable the corresponding check boxes:
& Row percentages
& Column percentages
& Total percentages
& Expected frequencies
& Chi-square residuals
& Standardized chi-square residuals
When performing multiple response crosstab analyses, an additional option allows you
to specify whether the percentage will be based on the total number of responses, or on
the number of respondents.
STATISTICS PAGE
The Statistics page allows you to specify which statistics should be computed on the table.
You can specify as many statistics as needed in a single analysis.
78 - SIMSTAT for WINDOWS
CHART PAGE
Barchart - If this option is activated, the program displays a 2 dimensions barchart that
provides a graphical presentation of the relationship between the dependent and the
independent variable.
Type - The Type option offers a choice between 4 different bivariate barcharts to display:
& In a clustered barchart, the bars representing the response frequency for each
category of the independent variable are placed side by side.
& When the overlayed barchart is chosen, the bars are displayed on a 3 axis plane
where bars representing the frequency of each category of the independent variable
are place on different rows. This chart type is available only in 3-D view. While
this kind of chart is very popular, we strongly recommend against its use, since it
is virtually impossible to determine the exact heights of the bars or compare the
heights of bars located on different rows.
& In a stacked barchart, the bars representing the frequency of each category of the
dependent variable are stacked on top of each other.
& The 100% bars type is similar to the stacked barchart in that the bars for each
category of the dependent variable are stacked on top of each other. However, like
a pie chart, each bar represents the proportion of a category of the independent
variable from the total number of observations in a specific category of the
dependent variable. This type of barchart is especially useful if you want to
STATISTICAL ANALYSIS - 79
SIBLING->
Count
Row Pct
Col Pct
.00 1.00 2.00 Total
SEX
1.00 13 13 3 29
Male 44.8 44.8 10.3 49.2
44.8 54.2 50.0
2.00 16 11 3 30
Female 53.3 36.7 10.0 50.8
55.2 45.8 50.0
Column 29 24 6 59
Total 49.2 40.7 10.2 100.0
Descriptives
DESCRIPTIVES immediately computes univariate descriptive statistics for any variable assigned
as a dependent or independent variable. Display includes mean, standard deviation, minimum,
and maximum values for each variable. To obtain other descriptive statistics such as the
skewness, kurtosis, mode, median, etc., use the FREQUENCY command.
Factor analysis
EASY FACTOR ANALYSIS v3.0 performs two common types of factor analysis: Principal
components analysis and image covariance factor analysis. The program has a good selection of
features, such as variable criteria to limit factoring, varimax rotation, factor scores for both
rotated and unrotated solutions, and flexible output. The program can also handle up to 100
variables, and an extremely large number of cases. (For more detailed information on factor
analysis and the various statistics computed by EFA, see EFA user’s manual).
NOTE: EFA v3.0 is an addon module written by Dr Darren Fuerst and sold separately. To get
more information on this module or to order a copy contact Provalis Research.
OPTIONS
Type of Analysis - Sets the type of factor analysis to use. The available types are Principal
Components and Image Covariance.
Varimax Rotation - Set this option if you would like to rotate your factors using varimax
orthogonal rotation.
Number of Factors - Sets the maximum number of factors to retain in subsequent
analyses (i.e., rotation and scoring). The default is the number of variables in the data
set.
Minimum Eigenvalue - Sets the minimum permissible eigenvalue for a factor to be
retained in subsequent analyses (i.e., rotation and scoring). The number of factors to
retain and minimum eigenvalue criteria are evaluated in an either/or fashion; that is,
if either criterion is met, the number of factors retained is cut off at that point.
Descriptive statistics - If you would like means and standard deviations for your selected
variables in the output, enable this option. Note that the standard deviations printed by
EFA are unadjusted (i.e., the sum of the squared deviations is divided by n, rather than
n-1). To obtain adjusted standard deviations or more detailed descriptive statistics see
the DESCRIPTIVES or the FREQUENCY commands.
Correlation matrix - When toggled on, the correlation matrix for the variables in the data
set will be included in the output.
Scree plot - If you would like a scree plot of the eigenvalues in the output, select this
option.
82 - SIMSTAT for WINDOWS
Unrotated factor solution - When enabled, the results of the unrotated factor solution
will be included in the output. You can turn this off if you're running multiple analyses
on the same data and do not need to have this information repeated in the output.
Rotate factor solution - When enabled, the factors are rotated to the varimax criterion,
and the results of this analysis are included in the output. You may wish to turn this
option off during the initial analysis of a very large data set, when you're most interested
in determining the number of factors in your data, as rotation of a large number of
factors can be relatively time consuming.
Factor scoring weights - When enabled, EFA will calculate factor scores for both the
rotated and unrotated solutions. The factor scoring coefficients will be printed in the
output. By default, factor scores are not calculated, as they are not always needed, are
relatively time consuming to calculate, and are usually not calculated until a final factor
solution has been arrived at.
Display factor scores - If you would like the factor scores for your subjects to be printed
in the output, toggle this option on. Be warned that including the factor scores in the
output can increase its size dramatically.
Analysis Parameters
-------------------
Path .\
File SIM2EFA
Analysis Type Principal Components
#Factors 10
Min Eigenvalue 1.00000
Max Iterations 30
Rotate Yes
Score Yes
Analysis Log
------------
Analysis began 5/20 1996 at 20:58:31.
The raw data file has 12 variables and 132 observations.
Correlation matrix created.
Factor extraction complete.
NOTE: Trace = 12.000, with 63.46% of the total trace extracted by 3 factors.
Varimax rotation complete.
Unrotated factor scores calculated.
Rotated factor scores calculated.
Analysis ended 5/20 1996 at 20:58:32.
STATISTICAL ANALYSIS - 83
Correlation Matrix
Frequencies
FREQUENCY performs frequency and descriptive analysis on all selected variables (dependent
or independent). The dialog box allows you to display a table with frequency counts for each
value of a variable, the percentage of the count over all cases and over valid cases only, and the
cumulative percentage over all valid cases. It allows you to obtain a bar chart, a Pareto, or a pie-
chart for numeric and string variables. When used with numeric variables, you can also obtain
percentile tables, and descriptive statistics (mean, median, mode, standard deviation, variance,
skewness, kurtosis, minimum, maximum, and range) for each variable as well as histograms,
box-&-whisker plots, cumulative distribution charts, and normal probability plots.
OPTIONS
ANALYSIS TAB
Frequency table - This option requests the output of a frequency table. This table
includes the frequency counts for each value of a variable, the percentage of the count
over all cases and over valid cases only, and the cumulative percentage over all valid
cases.
Sort by - Use this option to tell the program whether the frequency table should be sorted
by the values of the variable or by order of frequency.
Type - The Type option allows you to specify whether the frequency table should be sorted
in ascending or descending order.
Descriptive statistics - Use this option to obtain a table of various descriptive statistics.
This table includes the following statistics: mean, standard error of the mean, sum,
mode, median, standard deviation, variance, skewness, kurtosis, minimum, maximum,
and range.
Confidence interval - This option prints a confidence interval around the mean. The
Width option allows you to set the interval width expressed as a percentage. Its value
should lie between 1% and 99%.
Percentile table -This option displays a percentile table whereby the number of cases in
the sample is divided into equal categories. These categories indicate the percentage
of cases that fall below the corresponding value of the variable. The number of
categories computed in this table is determined in the Number option and is displayed
with the corresponding variable values. For example, if you set this option to 4, the
program will rank all valid cases, divide them into four equal groups, and then display
the values that delimit the 25th (lower quartile), 50th (median) and 75th (upper
quartile) percentiles.
STATISTICAL ANALYSIS - 87
CHARTS PAGE
Bar chart - If this option is activated, the program produces a bar chart that provides a
graphical representation showing the relative frequencies of every value of a variable.
Pie chart - This option displays a pie chart where the relative frequency of each value is
represented by a slice. Pie charts are appropriate when you want to compare individual
values to other values and to the whole.
Pareto chart - This option allows you to obtain a bar graph that displays the categories of
a variable, sorted in descending order of frequency, with a line chart above the bars to
represent the cumulative percentages of the cases.
Box-&-Whisker - This option allows you to obtain a box-&-whisker plot that can be used
to examine the distribution of the variable. It is especially useful to detect the presence
of outliers and asymmetry in the data distribution. The box includes values that fall
between the first and the third quartiles (about 50% of the values). The line in the
middle of the box represents the median value, while the whiskers extend to the farthest
observations within 1.5 times the interquartile range measured from the nearest
quartiles. Values that are situated further than 1.5 times the interquartile range, but
within 3 times this distance, are represented by the letter O (for outliers). Values farther
than 3 times the interquartile range from the nearest quartile are represented by the
letter X (for extreme).
Normal plot - This option displays a normal probability plot that allows you to evaluate
whether the data are normally distributed. If the data follow a normal distribution, the
data points will fall approximately along a straight line going from the lower left corner
of the graph to the upper right corner.
Cumulative distribution - This option displays a cumulative distribution of frequencies.
Histogram - The Histogram option graphically displays the distribution of a numeric
variable. When this option is activated, the program first separates the values into non-
overlapping intervals of equal width, then plots bars that represent the relative
frequencies of each interval. The Number option allows you to specify how many bars
will be plotted. You can also assess how close the distribution is to a normal
distribution by superimposing a normal curve on the histogram. To obtain such a curve,
enable the Normal curve option.
OPTIONS PAGE
Suppress table - This option allows you to suppress the printing of frequency tables and
nominal charts such as barcharts, piecharts, and Pareto charts when a variable has more
values the the supplied cut-off value.
88 - SIMSTAT for WINDOWS
Valid Cum
Value Frequency Percent Percent Percent
Friedman Test
The FRIEDMAN TEST is a procedure for testing whether two or more related samples have been
drawn from the same population. The output displays the mean rank of each variable, the
number of cases, chi-square, degrees of freedom and probability value.
Because the Friedman test is used to compare correlated samples, it does not really make a
distinction between dependent or independent variables. The Variable Selection dialog box is
used instead to specify which variables should be compared together. For example, assigning
T1DEPRESS, T2DEPRESS, and T3DEPRESS to the Independent list box and T1AGGRESS,
T2AGGRESS, and T3AGGRESS to the Dependent list box will result in two separate Friedman
tests, the first one comparing the first 3 variables, and the second one comparing the other 3.
2.211 T1DEPRES
2.118 T2DEPRES
1.671 T3DEPRES
GLM ANOVA/ANCOVA
GLM ANOVA/ANCOVA is a procedure which permits the researcher to examine the effects of
one or more variables on a single continuous dependent variable. This procedure provides a way
to test the equality of means in categories within a single variable or factor (main effects) as well
as categories formed by combinations of two or more variables or factors (interaction effects).
Analysis of covariance (ANCOVA) allows the comparison of the effect of categorical variables
on the dependent variable while controlling for the effects of one or more quantitative variables
(covariates). SIMSTAT's implementation of analysis of variance and covariance is based on the
General Linear Model. Using a hierarchical regression analysis technique allows much greater
flexibility than standard ANOVA/ANCOVA procedures by allowing one to freely combine
quantitative and categorical factors and to statistically control for covariates which are either
categorical or quantitative. The procedure can also be used to perform standard multiple
regression problems that involve interaction terms. The GLM ANOVA/ANCOVA procedure
also handles balanced and unbalanced ANOVA designs by providing automatic adjustment for
unequal cell size. The dialog box allows you to display standard ANOVA/ANCOVA tables as
well as various outputs usually found in ANOVA/ANCOVA or multiple regression analysis.
Various adjustment methods for unequal cell sizes are provided, including a hierarchical strategy
where the user can set the order of entry of each variable in the model.
OPTIONS
ANALYSIS PAGE
Show steps - This option requests the printing of various statistics at each step of the
analysis. The information output at each step includes an ANOVA table, and a choice
of statistics such as multiple regression coefficients, regression equation for the
variables entered in the model, as well as cell adjusted means for nominal variables.
Multiple regression - This option displays the multiple regression coefficients, R square,
adjusted R square, and the probability (significance) for the whole model (omnibus
test).
Equation - When enabled, this option displays various statistics computed for the
variables included in the model, including the regression coefficient (or Bi), its standard
error and confidence limits, the standardized coefficient (or beta), whole, partial and
semi-partial correlation coefficients, F ratio and its probability. SIMSTAT generates
coded vectors to represent independent categorical variables (factors) and uses multiple
regression techniques using those vectors in order to accomplish ANOVA or ANCOVA
problems and obtain a regression equation that can be used for prediction. Effect coding
is used to create the vectors such that for each vector created, cases of one group are
assigned 1's while all other cases are assigned 0's with the exception of the cases of the
STATISTICAL ANALYSIS - 91
last group, which are coded as -1's. The following table illustrates the result of an effect
coding where 3 vectors (X1, X2, and X3) are created in order to represent the various
values contained in the GROUP variable.
-------------------------------------------------------
GROUP X1 X2 X3
-------------------------------------------------------
1 1 0 0
1 1 0 0
2 0 1 0
2 0 1 0
3 0 0 1
3 0 0 1
4 -1 -1 -1
4 -1 -1 -1
-------------------------------------------------------
The regression equation obtained with this method provides much useful information.
When the sample sizes are equal and there is no covariate, the intercept is equal to the
grand mean of the dependent variable. When the analysis involves unequal cell sizes,
the intercept is equal to the unweighted mean, that is, to the average of all group means.
Each coefficient associated with a coded vector represents the deviation from the grand
mean for the group associated with this vector. The predicted score of a subject is
obtained by adding to the grand mean the regression coefficient of the group to which
the subject belongs. The specific effect of the last group can be obtained by computing
the summation of all the b coefficients of the variables associated with the factor and
inverting the sign of the result (or - bk) The F and the significance value associated with
the coefficients cannot be used to specify whether there are significant differences
among the various groups but represent instead a test of the deviation of a group mean
from the grand mean. When the analysis involves more than one factor, the mean of
each cell can be obtained by substituting for each coded vector the proper code (i.e. 1,
0 or -1) in the regression equation. For instance, the predicted score of a subject with
treatment combination Ai and Bj is equal to the sum of the intercept (grand mean), the
effect of treatment i of factor A, the effect of treatment j of factor B, plus the effect
associated with the interaction between those two treatments. When a quantitative
variable (covariate) is included in the model, the predicted score can be obtained by
adding to the result the value obtained by multiplying the observed value on this
quantitative variable by its b coefficient.
Confidence interval - This option allows you to set the width of the confidence interval
for the unstandardized regression coefficients. This interval width is expressed as a
percentage and must lie between 1% and 99%.
92 - SIMSTAT for WINDOWS
Adjusted means - This option prints the predicted mean for each cell of all the nominal
(categorical) variables entered in the model controlling for every quantitative variable
(covariate) and/or interaction also in the model.
Test of change - This option allows the printing of a summary report of the changes in
R square at each step of the analysis.
Adjustment method - This option allows you to choose between 3 types of adjustment
for unbalanced designs. In the Regression model, all factors, covariates, and
interactions are entered simultaneously; in the Nonexperimental approach covariates
are entered first, followed by categorical factors and then by interactions; the
Hierarchical approach allows you to specify the order in which each variable will be
entered in the model. The following table shows the correspondence between those 3
methods and the terminology used by other sources:
DIAGNOSIS PAGE
Residual caseplot - This option allows the display of a casewise plot of standardized
residuals, including the predicted, obtained, and residual values for all cases. This
option is useful for identifying outliers (i.e., cases that are not well represented by the
regression model). The Outliers option allows you to restrict the residual caseplot to
those cases for which the absolute standardized value is greater than or equal to the
specified value. The Outliers value can be set between 0 and 4 standard deviations.
Durbin-Watson statistic - This option tests for the presence of autocorrelation or serial
correlation in the residuals. The larger the autocorrelation, the less reliable the results
of the analysis.
Residual scatterplot - This procedure produces a bivariate scatterplot. The predicted
value is plotted along the horizontal axis, and the standardized residuals on the vertical
axis.
Residual normal plot - This option displays a normal probability plot of residual values
that allows you to evaluate whether those residuals are normally distributed. If the
residuals follow a normal distribution, the data points will fall approximately along a
straight line going from the lower left corner of the graph to the upper right corner.
Save residuals - This option instructs SIMSTAT to save the predicted and residual
values as new variables in the current data file. Creating those variables allows you to
perform further analyses such as displaying scatterplots between each independent
STATISTICAL ANALYSIS - 93
variable and the predicted and residual values. The new variables are named PREDxxx
and RESIDxxx where xxx stands for a serial number between 001 and 999 that
corresponds to the number of analysis performed during a single command. This
number is automatically reset to 001 after each command. To prevent overwriting those
variables, you must rename them using the DEFINE VARIABLE command.
Multiple Regression
Analysis of Variance
Regression equation
Parameter Estimate Std Err 80% Confidence interval
Intercept -1.5700
B1 : AGE 3.1556 1.4260 1.3071 to 5.0042
Analysis of Variance
Regression equation
B Std Err 80% Confidence interval
Intercept 3.8458
A1 : SEX = 1.00 8.4532 1.6211 6.3518 to 10.5546
B1 : AGE 3.0895 1.1107 1.6497 to 4.5293
C1 : SIBLING = 0.00 -7.3120 2.4352 -10.4688 to -4.1553
C2 : SIBLING = 1.00 -5.8700 2.5095 -9.1230 to -2.6170
1.0 .0 34.4681
1.0 1.0 35.9102
1.0 2.0 54.9622
2.0 .0 17.5617
2.0 1.0 19.0038
2.0 2.0 38.0558
Multiple Regression
Analysis of Variance
Inter-raters analysis
Inter-rater agreement measures are used to assess the concordance in observed ratings of two
judges at the same point in time. Such measures can also be used to assess the reliability of the
ratings of a single judge at different points in time. The simplest measure of agreement for
nominal level variables is the proportion of concordant ratings out of the total number of ratings
made. Unfortunately, this measure often yields spuriously high values because it does not take
into account chance agreements. Several adjustment techniques have been proposed in the
literature to correct for the chance factor, three of which are available in the SIMSTAT program.
The following are the assumptions made by each of these correction techniques: free marginal
adjustment assumes either that all categories on a given scale have equal probability of being
observed, or that the judges have not based their decisions on information about the distribution
for their ratings. Scott's pi adjustment does not assume that all categories have equal probability
of being observed, but does assume that the distributions of the categories observed by the judges
are equal. Cohen's kappa adjustment does not assume that all categories have equal probability
of being observed, nor that the distribution of the categories is equal for the two judges. It does,
however, in computing the chance factor, take into account the differential tendencies of the
judges.
SIMSTAT also offers three adjustments for ordinal level variables. These are similar to the
previous measures except that they also take into account the ordinal nature of the scales by
adjusting the weights assigned to various levels of agreement. They apply the same tree model
of chance agreement used in the previous measures of nominal data. Free marginal adjustment
for ordinal level variables also assumes that all categories on a given scale have equal probability
of being observed. Krippendorf's R-bar adjustment is the ordinal extension of Scott's pi and
assumes that the distributions of the categories are equal for the two sets of ratings.
Krippendorf's r adjustment is the ordinal extension of Cohen's Kappa in that it adjusts for the
differential rating tendencies of the judges in the computation of the chance factor.
OPTIONS
TABLE PAGE
Agreement table - This option requests the output of an agreement table.
Sort by - Use this option to tell the program whether the row and columns of the table
should be sorted by the values of the variable or by frequency.
Type - The type option allows you to specify whether the rows and columns of the
agreement table should be sorted in ascending or descending order.
98 - SIMSTAT for WINDOWS
Table content group - The Table Content group box allows you to request other statistics
in addition to frequencies to be included in the cells of the table. You can obtain as
many of the statistics as desired by enabling the corresponding check box:
NOTE: The expected frequencies displayed in the inter-rater agreement tables do not necessarily correspond
to the expected frequencies used in the above correction techniques. Rather, they correspond to the values
used in the computation of chi-square statistics used in contingency tables. However, those values coincide
with those used in the computation of Cohen's Kappa and Krippendorf's r.
STATISTICS PAGE
The STATISTICS page allows you to request various nominal and ordinal level measures
of agreement:
& Percentage of agreement
& Cohen's kappa
& Scott's pi
& Free marginal (nominal)
& Krippendorf's r-bar
& Krippendorf's R
& Free marginal (ordinal)
CHART PAGE
Barchart - If this option is activated, the program displays a 2 dimensional barchart that
provides a graphical presentation of the relationship between the dependent and the
independent variable.
Type - The Type option offers a choice between 4 different ways of displaying a bivariate
barchart:
& In a clustered barchart, the bars representing the frequency of each category of the
independent variable are placed side by side.
& When the overlayed barchart is chosen, the bars art is displayed in perspective on
a 3 axis plane where bars representing the frequency of each category of the
independent variable are placed on different rows. This chart type is only available
in 3-D view. While this kind of chart is very popular, we strongly recommend
STATISTICAL ANALYSIS - 99
against its use, since it is virtually impossible to determine the exact heights of the
bars or compare the heights of bars located on different rows.
& In a stacked barchart, the bars representing the frequency of each category of the
dependent variable are stacked on top of each other.
& The 100% bars type is similar to the stacked barchart in that the bars for each
category of the dependent variable are stacked on top of each other. However, just
like a pie chart, each bar represents the proportion of a category of the independent
variable from the total number of observations in a specific category of the
dependent variable. This type of barchart is especially useful if you want to
compare the proportions between different categories of the dependent variables
rather than the absolute frequency.
Perspective- This option allows you to specify whether the barchart should be displayed
in 2 or 3 dimensions.
A sample output of inter-raters analysis
INTER-RATERS TABLE
EVENT1J2 Level of stress - Judge #2
by EVENT1J1 Level of stress - Judge #1
EVENT1J2->
Count Low Medium High
Tot Pct
1.00 2.00 3.00 Total
EVENT1J1
1.00 24 4 28
Low 40.7 6.8 .0 47.5
2.00 22 2 24
Medium .0 37.3 3.4 40.7
3.00 1 2 4 7
High 1.7 3.4 6.8 11.9
Column 25 28 6 59
Total 42.4 47.5 10.2 100.0
Item Analysis
STATITEM v1.0 performs classical item and test analysis for multichoice item questionnaires.
It computes the percentage endorsement and the item-total correlations for correct and alternate
responses. It also provides endorsement rates for various achievement levels and descriptive
statistics on the total score such the mean, median, minimum, maximum, variance, skewness,
kurtosis, etc., as well as Cronbach's alpha internal consistency and Ferguson's discrimination
index. Descriptive statistics are also computed on percent correct and item total correlations.
STATITEM is closely integrated with SIMSTAT and will perform analyses on data stored in
each file format currently supported by SIMSTAT. The key responses used to specify correct
responses may be stored in either the first record of the data file or in a key file.
NOTE: STATITEM v1.0 is an addon module sold separately. To get more information on this
module or to order a copy contact Provalis Research.
Usually, the longer the scale, the higher the value of the alpha coefficient. Consequently, we may
be tempted to always prefer a long version of a questionnaire to a shorter one. There are at least
two problems with this solution. First, it is often desirable, for practical reasons to have a shorter
test in order to reduce the administration time or cost. Second, it often occurs that some items,
while positively correlated with the scale total, may reduce the overall reliability of the scale or
may contribute only marginally to this reliability. The test developer needs to eliminate items
without greatly reducing the scale's reliability. To achieve this, he/she needs to know the specific
contribution of each item to the scale reliability index. The Alpha if item deleted represents
such a measure. As the name suggests, it represents the Cronbach's alpha value we would obtain
if the item was removed from the test. By successively eliminating items that reduce the
Cronbach's alpha, or that contribute only slightly to the reliability index of the total score, it
becomes possible to significantly reduce the number of items while maintaining an acceptable
level of reliability.
better discriminatory value will be achieved by selecting items with difficulty levels near the
desired end.
However, the percentage of correct responses is not a sufficient condition to judge the quality of
an item, since the number of correct responses should also be related to the level of the ability we
want to measure. If those who answer correctly are low on the measured ability while the
subjects with higher scores choose a wrong answer, or if the success on this item is the same for
these two groups, then there may be a problem in the item formulation or the item may be
measuring a different ability, unrelated to the one of interest. Several methods exist to assess the
relationship between level of endorsement and the measured ability. A simple method consists
of making sure that the percentage of correct responses to an item is higher for those who are
high on the measured construct than for those who are low on this construct. In the absence of
an external criterion, a second method uses the total score on all items as the discriminatory
criterion. In this situation, we simply compute the total scores on the test for each subject and
retain two distinct groups, each representing a specific proportion of the examinees (say 10, 25
or 50%) positioned at the upper and lower end of the ability scale. Once the upper and lower
groups have been composed, we can obtain an index of discrimination for an item by computing
the difference in the percentage of correct responses between the upper and the lower groups.
This index (often designated as the D index) varies from -1.0 to 1.0, a positive value indicating
that the item correctly discriminates according to the measured construct. The greater the
difference, the better the item is able to discriminate between subjects. On the other hand, a
negative value suggests a negative discrimination favoring those in the lower group, and is strong
evidence for a problematic item. Ebel (1965) suggested the elimination or complete revision of
items with a discrimination index less than .20 and the revision of those with an index value
between .20 and .30.
While the D index is easily computed and interpreted, it suffers from a major drawback. When
comparing only the two most extreme groups, much information is discarded such as the
percentage of success in intermediate groups or among the subjects within a group. STATITEM
offers several ways to examine the distribution of correct responses more closely. The program
can provide detailed information about the distribution of correct responses by breaking down
the total number of examinees into several groups (from 2 to 10) of similar size and displaying
the percentage of correct responses for these groups. It is also possible to display even more
detailed information on the success rate of an item for every value of the total score, allowing one
to assess whether the item can provide adequate discrimination of subjects all along the scale.
To simplify the examination of the relationship between the proportion of success to an item and
the total score, STATITEM also provides a graphical representation of this relationship as an
empirical item characteristic curve (also called an item-test regression curve) which displays, for
each total score level, the percentage of persons who responded correctly. This curve allows one
to examine the item's difficulty and discriminatory properties. It also provides a complete picture
of the relation between item performance and the total score. STATITEM can display an
empirical curve computed from the original scores or a smoothed version that may be used to
eliminate noise caused by percentages based on a small number of subjects.
Another common discrimination index is the point-biserial correlation between an item and
the scale total when the item is omitted. The item is removed from the total score since keeping
it would produce artificially inflated correlation coefficients. A positive value suggests that those
STATISTICAL ANALYSIS - 103
who answered the item correctly scored relatively high on the scale total. A negative value
indicates that those who answered the item correctly have obtained relatively low scores on the
scale total.
The biserial correlation coefficient is an index derived from the point-biserial correlation.
This coefficient assumes that the variable measured by a dichotomous item response is in fact a
continuous variable that is normally distributed. Since the reduction of a continuous variable into
a dichotomy has the effect of reducing its correlation with other variables, the computation of the
biserial correlation consists of applying a correction to the point-biserial that tries to estimate
what would have been the value of this correlation if the item had not been dichotomized. One
drawback of this correction is that the biserial correlation is no longer bounded by the -1.0 and
1.0 limits and can take values lower than -1 or higher than 1.
OPTIONS
Keys location - This option allows you to specify whether the key responses are stored
in the first record of the database or in a key file. If the key file option is selected, the
program will look in the data file directory for a file with the same file name as the data
file but with a .KEY extension. This file is a plain text file where each line contains the
name of a variable followed by the value of the correct response. If a key file is not
found or if a variable has no key response, the analysis will automatically stop (NOTE:
Even if the responses to the item have been previously dichotomized as correct or
incorrect, you still need to specify the key value for each variable by providing the value
used to represent a correct response).
Exclude case with missing - This option allows you to exclude cases containing missing
data (either system or user-missing values) from the analysis. If disabled, all missing
data will be treated as incorrect responses.
Response total correlations - This option displays, for each item in the scale, the
frequency and percentage of endorsement of each response as well as the biserial and
point biserial correlation between the response and the scale total omitting that item.
The item is removed from the total score since keeping it would produce artificially
inflated correlation coefficients. The table also includes the value the Cronbach's alpha
would take if the item was deleted from the scale as well as a discrimination index (D
index) obtained by computing the difference between the percentage of correct responses
in the highest and lowest groups. The percentage of respondents used for this index can
be set using the Hi-Low discrimination index option that can take a value between
10 and 50%. To include similar information about each alternate response, enable the
Include alternate responses option.
Item-total endorsement rate -This option allows one to obtain a matrix that displays for
each value of the scale total the percentage of cases who scored positively on each item.
Item characteristic curves - This option displays curves allowing you to examine the
relationship between the total score and the success level on an item, to compare the
difficulty level of several items, and to estimate their discriminatory value. By default,
the curves are drawn using the original scores. The Smoothed curve option may be
used to eliminate some irregularities in the curves caused by small numbers of subjects
used in the computation.
Item-total response breakdown - This option allows one to separate the whole sample
into several groups of equal size and to compare the percentage of cases who scored
positively on each item. The Number of groups specifies the number of groups to
create. This number must lie between 2 and 10. For example, setting this option to 4
will create four different groups based on the obtained total score, each group
representing 25% of the respondents. The program will then display a table that
indicates for each item of the scale the percentage of correct responses for these four
groups. A discrimination index is also computed for each item by computing the
STATISTICAL ANALYSIS - 105
difference in the percentage of endorsement between the groups with the highest and
the lowest scores.
Scale statistics - The Scale Statistics option displays various descriptive statistics on the
distribution of the scale total (mean, median, minimum and maximum, standard
deviation, standard error, skewness, kurtosis, etc.). The Cronbach's alpha internal
consistency statistic and the Ferguson's delta discrimination index are also computed.
This option also provides summary statistics on the percentages and on the biserial and
point biserial correlations between each correct response and the scale total.
Total score distribution - Activate this option to scrutinize the distribution of total scores
more closely.
Save scale totals - This option allows one to save the total score computed for each
subject in an ASCII data file. This data file can then be opened by SIMSTAT to
perform further analysis.
TOTAL 6 7 8 9 10 11 12 13 14 15 16
FREQUENCY 2 1 6 4 15 20 28 41 47 54 61
V1 50% 0% 33% 50% 20% 25% 39% 34% 45% 72% 80%
V2 0% 100% 50% 25% 53% 55% 54% 76% 77% 78% 85%
V3 0% 0% 0% 0% 20% 15% 29% 51% 62% 74% 85%
V4 50% 0% 17% 25% 53% 95% 86% 100% 100% 100% 100%
V5 0% 0% 83% 50% 60% 75% 86% 85% 96% 93% 97%
V6 100% 0% 83% 100% 93% 100% 100% 98% 96% 96% 95%
TOTAL 17 18
FREQUENCY 60 61
V1 85% 100%
V2 93% 100%
V3 95% 100%
V4 100% 100%
V5 98% 100%
V6 100% 100%
V1 V2 V3
100 100 100
0 0 0
6 18 6 18 6 18
V4 V5 V6
100 100 100
0 0 0
6 18 6 18 6 18
STATISTICAL ANALYSIS - 107
SCALE STATISTICS
Total score Percentage Biserial Item-Total
Mean 14.76 82.0 .45 .28
Median 15.00 85.8 .45 .28
Minimum 6.00 48.0 -.03 -.02
Maximum 18.00 97.3 .86 .48
Variance 6.62 206.7 .04 .01
Std. Dev. 2.57 14.4 .19 .12
Skewness -.745
S.E. Skewness .122
Kurtosis .104
S.E. Kurtosis .245
Nb of cases 400
Nb of items 18
6 2 .5 2 .5
7 1 .3 3 .8
8 6 1.5 9 2.3
9 4 1.0 13 3.3
10 15 3.8 28 7.0
11 20 5.0 48 12.0
12 28 7.0 76 19.0
13 41 10.3 117 29.3
14 47 11.8 164 41.0
15 54 13.5 218 54.5
16 61 15.3 279 69.8
17 60 15.0 339 84.8
18 61 15.3 400 100.0
-------- -------- -------- --------
TOTAL 400 100.0 400 100.0 0 100
108 - SIMSTAT for WINDOWS
OPTIONS
Distribution - This option allows you to choose between distribution types: normal or
uniform.
Mean - Standard Deviation - These options allow you to specify the mean and the
standard deviation of the hypothetical normal distribution. If no value is given, the
observed mean and standard deviation are used.
Minimum - Maximum - These options allow you to specify the minimum and the
maximum values of the hypothetical uniform distribution. If no values are given, the
observed minimum and maximum are used.
OPTIONS
Values of x - This option requires two independent variable values. The cases that match
the first value on the independent variable form one group and the cases that match the
second value form the second group. The order in which values are specified determines
which difference is the largest positive and which is the largest negative.
Cases
29 SEX = 1.00
30 SEX = 2.00
-----
59 Total
Kruskal-Wallis
The KRUSKAL-WALLIS one-way analysis of variance by ranks is a procedure for testing
whether k groups have been drawn from the same population. This test is a nonparametric
version of the ONEWAY analysis of variance. The output displays the number of valid cases,
the mean rank of the variable in each group, chi-square and its probability with a correction for
ties.
OPTION
Range of x - This option requests two values that will be treated as minimum and
maximum values of the grouping (or independent) variable under consideration. Each
discrete value of the independent variable that falls within this range defines a distinct
group.
Listing cases
LIST CASES displays a listing of the values of the selected dependent and independent variables.
OPTION
List all cases - Check this box if you want to display all currently selected cases.
Number of cases - When the List All Cases option is disabled, this option allows you to
specify how many cases to include in the listing.
Logistic regression
The LOGISTIC REGRESSION command fits a multiple logistic regression model on a binary
response variable with one or several explanatory variables. Output includes the likelihood ratio
statistic for overall significance, parameter estimates, exponentiated parameter estimates (which
are the odds ratios corresponding to a unit change in the independent variables), Wald statistics
for assessing the effects of independent variables, and confidence intervals for the regression
parameters (For more detailed information about logistic regression and the statistics computed,
see the LOGISTIC user’s manual).
NOTE: LOGISTIC v3.11Ef is a shareware program written by Dr Gerard E. Dallal. You can
obtain a copy of the program on any Internet SIMTEL FTP site such as oak.oakland.edu or by
writing to:
Gerard E. Dallal
54 High Plain Road
Andover, MA 01810
USA
OPTIONS
Value for success and Value for failure - These two options allow you to specify legal
values of the binary response. By default those values are set to 0 and 1.
Constant - This option specifies whether or not to include a constant in the model.
Interaction - This option allows to you specify which interactions should be included in
the model. Variables are designated by a single uppercase letter and are grouped
together by an * character. Multiple interactions may be specified on the same line. For
instance the following expression: A*C A*B*C designate a two-way interaction
between the first and the third variables on the list, and a three way interaction between
the first three variables.
Classification table - When enabled, this option constructs a classification table (observed
response vs. P(observed response = 1), with probabilities, grouped in tenths, determined
from the fitted regression model) to aid in assessing the adequacy of the fitted model.
If 3 or more rows have positive totals, a Hosmer-Lemeshow goodness-of-fit statistic
(Hosmer and Lemeshow, 1989, sec. 5.2.2) is computed along with its P-value.
STATISTICAL ANALYSIS - 113
Likelihood ratio - This option allows you to display the likelihood ratio statistics for the
significance of each variable. They can be used as a check on the corresponding Wald
statistics, which Hauck and Donner (1977) have shown to be misleading sometimes.
This option was implemented as a separate command because of the work it generates:
a different model must be fitted (iteratively!) to assess the effect of each variable. This
option is not available when the model contains interactions.
Confidence interval - This option specifies the width of the confidence intervals for the
coefficients.
Tolerance - This option specifies the convergence criterion. Iterations cease when the
largest relative change in any coefficient between successive iterations is smaller than
the specified tolerance. The maximum number of iterations is set at 50, and cannot be
altered.
114 - SIMSTAT for WINDOWS
Mann-Whitney U test
The MANN-WHITNEY U test evaluates the hypothesis that two independent samples have the
same distribution. The Mann-Whitney U is the nonparametric version of the t-test for
independent samples. This test is performed on the dependent variable divided into two groups
as defined by values of the independent (grouping) variable.
OPTIONS
Values of x - This option requires two independent variable values. The cases that match
the first value on the independent variable form one group and the cases that match the
second value form the second group.
Direction - This option allows you to select either a one-tailed (directional) or two-tailed
(non-directional) probability test.
McNemar test
The McNEMAR TEST is a procedure applied to a pair of correlated dichotomous variables to
test whether there is a significant difference in proportions of subjects that change from one
category to another at two different points in time, or in response to two different conditions.
A binomial test is used to compute the significance level when the total number of changes is less
than 10. Otherwise, a chi-square statistic with the Yates correction for continuity is used.
OPTIONS
Values - This option allows you to specify the two values for both the independent and
dependent variables. For each variable, the cases that match the first value are assigned
to one condition and the cases that match the second value are assigned to the second
condition. A 2 x 2 contingency table is then constructed and a significance test is
computed for cases that are in different conditions.
Direction - This option specifies whether the probability of the significance test is based
on a one- or two-tailed test.
VAR2
2 1
1 9 5
VAR1
2 3 7
Chi = .063 2 tailed probability = .8026
116 - SIMSTAT for WINDOWS
Median test
The MEDIAN TEST is a procedure for testing whether two or more independent groups differ
in central tendencies. It tests the likelihood that those groups were drawn from populations with
the same median.
The output displays the number of cases greater than, the number of cases less than, and the
number of cases equal to the median for each category of the grouping variable. Also displayed
are the median, chi-square, degrees of freedom and probability value.
OPTIONS
Type - The Type option allows you to choose between a design including 2 samples, or an
extended version that tests for more than 2.
Values of x - You must enter two values in the Values of X option. If the design chosen
is a 2 samples test, then two groups are formed using the two values. If the extended
test is chosen, then every value in the range defined by the two values forms a group.
A test is then performed on all groups.
Gt Median Le Median
SIBLING = .00 7 22
SIBLING = 1.00 11 13
SIBLING = 2.00 4 2
OPTIONS
Values of x - This option requires two independent variable values. The first value of the
independent variable defines the control group, and the second value defines the
comparison group.
Outliers to remove - This option allows you to determine the percentage of extremes
cases to be excluded from the analysis. If this field is left blank, 5% of the cases are
trimmed from each end of the range of the control group to remove outliers.
Cases
Multiple regression
Multiple regression analysis is a statistical technique that allows you to assess the relationship
between one dependent (Y) variable and several independent variables (also called predictors).
For example, you may want to predict the aggressiveness of children from several independent
variables such as gender, age, number of siblings and the time spent watching TV. The
technique can be used to analyze how various combinations of independent variables correlate
with one anothers as well as with the dependent variable.
Multiple regression is an extension of bivariate regression. The result of regression is an
equation that represents the prediction of the dependent variable from several independent
variables. The regression equation takes the following form:
where Y' is the predicted value of the dependent variable, A is the intercept (the value of Y when
all values of the independent variables are zero), X represents the observed value of the
independent variables (or predictors) and B is the coefficient assigned to each of the independent
variables. The goal of the regression technique is to find the values of all B that produce
prediction scores that most closely fit the actual values of Y.
SIMSTAT provides three broad classes of multiple regression: standard regression, hierarchical
regression and statistical (stepwise) regression. Each class differs in the way the independent
variables are selected to be included in the equation.
Statistical Regression
In the statistical regression model, the independent variables are entered in the equation
according solely to some statistical criteria obtained from the current sample. SIMSTAT
provides three versions of statistical regression: forward selection, backward deletion, and
stepwise selection. When forward selection is used, the variable that shows the largest
correlation (positive or negative) with the dependent variable is entered in the equation provided
that it meets a specified statistical criterion of significance. Then, a comparison is made between
all the remaining variables to select the one that contributes the most to a significant increase in
prediction. Forward selection continues until there are no other variables that meet the entry
criterion. In backward deletion, all variables are entered initially. Then, variables that do not
meet the statistical criterion are sequentially removed. Stepwise selection is a combination of the
forward and backward procedures. With this procedure, a variable is selected to be entered in
the equation in the same manner as with forward selection, but after each entry of a new variable,
each variable already in the equations is examined so that if it no longer contributes significantly
to the regression, it is removed. The criteria used to enter or remove a variable from the equation
can be specified by the user.
Much controversy surrounds the use of this type of multiple regression. One of the criticisms of
this technique is that it capitalizes on chance and thus offers a solution that often overfits the
sample data and cannot be generalized to the population or even be replicated on another sample.
In a sense, the solution obtained from the sample may be very unstable.
The reason that those procedures have been included here is that there remain some rare
situations in which these techniques are needed, such as when one wants to select a limited
number of variables among a set of good predictors (mainly for practical reasons). In the author's
opinion, hierarchical regression is probably the most highly recommended procedure. However,
this procedure requires clarification of the logic and theory behind the data collection.
OPTIONS
ANALYSIS PAGE
Method - The Method list box option allows you choose among 5 different strategies of
multiple regression: Hierarchical entry, forward selection, backward deletion, stepwise
selection, and standard regression.
Show steps - This option requests the printing of various statistics at each step of the
regression. The information output at each step can include an ANOVA table, a test for
change, and various statistics for the variables in the equation and for those not yet in
the equation.
ANOVA table - The ANOVA Table option allows printing of an ANOVA table that
includes regression analysis and residual sum of squares, mean square, F and probability
value associated with F.
120 - SIMSTAT for WINDOWS
Test of change - This option allows printing an ANOVA table that tests whether the new
variable(s) in the model significantly increase R square above the R squared predicted
with the variables already in the equation. The table includes the resultant R squared,
the R squared change, the sum of squares, the F ratio and its probability value.
Variables in the equation - This option displays various statistics computed on the
variables in the equation including each unstandardized regression coefficient (or Bi),
its standard error and confidence limits, the standardized coefficient (or beta), whole,
partial and semi-partial correlation coefficients, tolerance level, F ratio and its
probability.
Variables not in the equation - This option displays the tolerance level, the F ratio and
its probability for each variable not yet in the equation.
History - When the History option is activated a summary report of the changes in R
squared at each step of the regression is printed.
Summary ANOVA - This option allows the printing of a detailed ANOVA table that
includes the mean square, the sum of squares, the F ratio and its probability for each
variable or set of variables in the equation.
Confidence interval - This option allows you to set the width of the confidence interval
for the unstandardized regression coefficients. This interval is expressed as a
percentage and must lie between 1% and 99%.
DIAGNOSIS PAGE
Residual caseplot - This option allows the output of a casewise plot of standardized
residuals, including the predicted, obtained, and residual values for all cases. This
option is useful for identifying outliers (i.e., cases that are not well represented by the
regression model). The Outliers option allows you to restrict the residual caseplot to
those cases for which the absolute standardized value is greater than or equal to the
specified value. The Outliers value can be set to between 0 and 4 standard deviations.
Durbin-Watson statistic - This option tests for the presence of autocorrelation or serial
correlation in the residuals. The larger the autocorrelation, the less reliable the results
of the analysis.
Residual scatterplot - This procedure produces a bivariate scatterplot. The predicted
value is plotted along the horizontal axis, and the standardized residuals along the
vertical axis.
Residual normal plot - This option displays a normal probability plot of residual values
that allows you to evaluate whether those residuals are normally distributed. If the
residuals follow a normal distribution, the data points will fall approximately along a
straight line going from the lower left corner of the graph to the upper right corner.
STATISTICAL ANALYSIS - 121
Save residuals - This option instructs SIMSTAT to save the predicted and residual
values as new variables in the current data file. Creating those variables allows you to
perform further analyses on them such as displaying scatterplots between each
independent variable and the predicted and residual values. The new variables are
named PREDxxx and RESIDxxx where xxx stands for a serial number between 001 and
999 that corresponds to the number of regression analyses performed during a single
command. This number is automatically reset to 001 after each command. To prevent
overwriting those variables, you must rename them using the DEFINE VARIABLE
command.
CRITERIA PAGE
P to enter - P to remove - The P to Enter and P to Remove fields allow you to set
criteria to be used in statistical regression techniques (i.e. stepwise, forward and
backward methods). A variable will be entered in the model if its probability is less
than the P to Enter criteria, while a variable in the equation that has a probability above
the P to Remove criteria will be removed from the model. The P to Remove should
always be greater than the P to Enter value.
Tolerance - The Tolerance criterion is used to prevent the inclusion of a variable that
would produce multicollinearity in the equation. This measure is the proportion of
variance of the variable not explained by the other independent variables already in the
equation (or 1 - R2). In order to be entered or to remain in the equation, a variable must
pass this tolerance test. To disable this function, set the criterion value to zero.
ORDER PAGE
When a hierarchical multiple regression method is chosen, the dialog box displays an Order
tab with a grid that lets you specify the order of entry of each independent variable in the in
the regression model. The order number can lie between 1 and 20. All variables with the
same number are entered at the same time, while variables that have lower numbers are
entered before those that have higher numbers. Variables with identical order numbers will
be entered simultaneously. You can enter the order by using the keyboard or the spin button
located at the right edge of the grid. At each step, information can be generated about the
degree to which a new variable or set of variables explains variance in the dependent
variable.
Regression 3 6885.2089
Residual 55 9055.4351
Multiple Regression
Multiple R = .6572 sig. of R = .0000
Multiple R Square = .4319
Adjusted R square = .4009
Analysis of Variance
Sum of Mean F F
Source D.F. Squares Squares Ratio Prob.
Intercept 21.9872
SEX -16.5393 3.3674 -20.9045 to -12.1741 .9847
AGE 2.8501 1.1501 1.3593 to 4.3410 .9829
SIBLING 7.0595 2.5298 3.7802 to 10.3389 .9882
Variable F Sig F
Sum of F F
Source D.F. Squares Rsq Chg Ratio Prob.
Regression 4 7458.4870
Residual 54 8482.1570
Multiple Regression
Analysis of Variance
Sum of Mean F F
Source D.F. Squares Squares Ratio Prob.
Intercept 11.6725
SEX -16.5099 3.2892 -20.7737 to -12.2462 .9846
AGE 2.6390 1.1288 1.1758 to 4.1022 .9735
SIBLING 5.7389 2.5658 2.4127 to 9.0650 .9165
HOURSTV .8717 .4563 .2802 to 1.4632 .9217
Sum of Mean F F
Source D.F. Squares Squares Ratio Prob.
OPTIONS
Nonparametric matrix
The NPAR MATRIX displays a matrix for various measures of association and concordance
between two variables.
OPTIONS
Estimator - The ESTIMATOR option allows you to choose from a drop down list which
measures of association are to be computed and displayed in an association matrix.
SIMSTAT currently supports the following measures:
& Kendall's tau-a
& Kendall's tau-b
& Kendall-Stuart's tau-c
& Somers' d (symmetric)
& Somers' dxy (asymmetric)
& Somers' dyx (asymmetric)
& Goodman-Kruskal's gamma
& Spearman's rs
& Pearson's r
OPTIONS
Values - This option allows you to specify the values that define the various categories.
For example, if you enter the following string:
1 1.5 2 3
the analysis will be restricted to the cases with values equal to one of these four
categories. This option can also be used to include categories for which there are no
cases. If you leave this field blank, all distinct values encountered in the variable will
form a separate category.
Frequency - This option allows the specification of the distribution against which the
sample will be tested. All values (expected frequencies, percentages or proportions) are
transformed into relative frequencies. The number of values provided in this field must
match the number of categories in the values field or in the data file. If this option is
left blank, equal frequencies are assumed for all categories.
.00 29 19.67
1.00 24 19.67
2.00 6 19.67
Oneway ANOVA
The ONEWAY ANOVA procedure performs a one-way analysis of variance for a dependent
variable on groups defined by a categorical independent variable. It allows testing whether the
means of the groups (2 or more) are significantly different from each other.
ONEWAY produces a table including: between- and within-groups sums of squares, mean
squares, degrees of freedom, F-ratio and its associated probability. You can also obtain for each
group, descriptive statistics including count, mean, standard deviation, standard error and a user-
specified confidence interval for the mean.
OPTIONS
Range of x - This option requests two values that will be treated as the minimum and
maximum values of the grouping (or independent) variable under consideration. Each
discrete value of the independent variable that falls within this range defines a distinct
group. If those fields are left blank, all values or the independent variable will be
included. An ANOVA test is then performed on these groups.
Descriptives - The Descriptives option displays the count, mean, standard deviation,
standard error, and a user-specified confidence interval around the mean of the
dependent variable for each group.
Post hoc tests - This option allows you to perform a post hoc multiple comparison
between all group means. The program gives a choice between four different methods
each one using different criterion for computing the significance level or constructing
confidence intervals of the difference between two means. The Least-significant
difference (LSD) test computes a confidence interval and a standard Student's t test
between all group means. It is the most powerful a posteriori contrast test, but as the
number of pairwise comparisons increases, so does the probability that at least one of
the confidence intervals or significance tests is in error. For this reason, this test is
usually recommended only when it is applied to comparisons that are planned before
observing the data. The Newman-Keuls test applies different criteria depending on the
number of steps between the two group means. The further apart those two group
means are from each other, the larger the difference between those two groups must be
in order to be significant. This procedure should be used only when the group sizes are
equal. The Tukey's honestly significant difference (HSD) test uses a single criterion for
all comparisons regardless of the distance between the group means. This test keeps the
experiment-wise error rate equal to α. The Scheffé's test is used to obtain simultaneous
confidence intervals for differences between all pairs of means while keeping the overall
error rate to α. It is a more conservative test and will lead to fewer significant
STATISTICAL ANALYSIS - 131
differences. This test can be used with equal or unequal group sizes, and with planned
or unplanned comparisons.
Confidence interval - This option allows you to set the confidence interval width for the
means, and for the pairwise comparisons of those means (post hoc tests). This interval
width is expressed as a percentage and must lie between 1% and 99%. This value is
also used when displaying bar charts with a confidence interval, or an error bar graph
representing a confidence interval around the mean.
Mean/Error bar graph - This option displays a mean bar and/or an error bar representing
the variability of the mean, or the values in each group.
Type of error - This option allows you to select whether the error bar will represent the
standard deviation, the standard error or a user-defined confidence interval. The width
of this interval is set by the interval option.
With bar chart - This option allows you to draw solid bars where each bar represents the
mean of a separate group.
Upper error bar only - When the bar chart option is selected and an error bar is
requested, this option allows you to specify whether the error bars displayed with the
mean bars should be displayed above and below the mean, or only above it.
Link means - When chosen, this option connects the means with a line.
Deviation chart - This option displays a bar chart where each bar represents the
deviation of the group mean from the grand mean.
132 - SIMSTAT for WINDOWS
Sum of Mean F F
Source D.F. Squares Squares Ratio Prob.
Total 58 15940.64
Group Count Mean Std Dev Std Err 90 Pct C.I. for Mean
Regression analysis
REGRESSION produces a simple regression analysis for each pair of dependent-independent
variables. The output includes the Pearson product-moment correlations, the intercept and slope
of the regression line, and an ANOVA table for the equation. The dialog box allows you to
obtain bivariate scatterplots, to select one-tailed (directional) or two-tailed (non-directional) tests
of probabilities, and to request standardized residuals plots.
OPTIONS
Type of analysis - This option allows you to choose between 8 types of nonlinear
regression. The following types of regression will allow the assessment of different
degrees of curvilinearity among the dependent-independent relations or to obtain an
equation that expresses various forms of bivariate relations. The following table
presents the types of regression and their corresponding equations:
Confidence interval - This option allows you to set the confidence interval for beta weight
estimates. This interval width is expressed as a percentage and must lie between 1%
and 99%.
Significance test - This option specifies whether the probability of the correlations
probabilities is based on a one-tailed (directional) or two-tailed (non-directional) test.
Scatterplot - Option Scatterplot produces a bivariate scatterplot with the independent
variable plotted along the horizontal axis, and the dependent variable along the vertical
axis.
Residual caseplot - When checked, this option produces a casewise plot of standardized
residuals, including the predicted, obtained, and residual values. The Outliers value
134 - SIMSTAT for WINDOWS
allows you to restrict the residual caseplot to those cases for which the absolute
standardized value is greater or equal to the specified value. The Outliers value can be
set to between 0 and 4 standard deviations.
Durbin-Watson statistic - This option tests for the presence of autocorrelation or serial
correlation in the residuals. The larger the autocorrelation, the less reliable the results
of the analysis.
Residual scatterplot - This procedure produces a bivariate scatterplot where the
predicted value is plotted along the horizontal axis, and the standardized residuals along
the vertical axis. The graph can be printed in text mode, graphics mode, or both.
Residual normal plot - This option displays a normal probability plot of the residuals
that allows you to evaluate whether those data are normally distributed. If the residuals
follow a normal distribution, the data points will fall approximately along a straight line
going from the lower left corner of the graph to the upper right corner.
Save residuals - This option instructs SIMSTAT to save the predicted and residual values
as new variables in the current data file. Creating those variables allows you to perform
further analyses such as displaying scatterplots between each independent variable and
the predicted and residual values. The new variables are named PREDxxx and
RESIDxxx where xxx stands for a serial number between 001 and 999 that corresponds
to the number of regression analyses performed during a single command. This number
is automatically reset to 001 after each command. To prevent overwriting those
variables, you must rename them using the DEFINE VARIABLE command.
STATISTICAL ANALYSIS - 135
Regression
Reliability analysis
Multiple-item additive scales are often used to measure various characteristics of a subject. One
desirable feature of such scales is their reliability. The reliability of a scale refers to the
consistency of the scores obtained when the scale is administered to the same group of subjects
at different occasions, under different conditions, or using different sets of equivalent items that
are supposed to measure the same underlying variable. By using this type of procedure, the
difference or fluctuation observed between the various administrations of the test, provided that
it cannot be attributed to real changes in the subject, can be used to estimate the proportion of the
total variance of the test score that can be attributed to error of measurement. Various methods
are used to estimate the reliability of a test.
The TEST-RETEST reliability method is obtained by administering the same test to the same
subjects on two different occasions (usually no more than 2 months apart). The correlation
between the scores obtained by the same subjects on the two administrations of the test is then
computed to obtain a measure of temporal stability (or test-retest reliability). Provided that the
length of the interval between the two administrations is short enough to preclude any real
change in the variable being measured, any fluctuation between the two scores is attributed to
random error of measurement. The higher the reliability, the less susceptible the scores are to
the random daily changes in the condition of the subject or the testing environment. A test-retest
reliability method can also be applied using alternative forms of the test. The reliability
coefficient obtained with such a method measures both the temporal stability of the test and the
consistency of response to different item samples.
Another method to measure the reliability of a test, known as SPLIT-HALF reliability, requires
only a single administration of a test. In this procedure, the items in the test are divided into two
halves comparable in terms of content, difficulty, etc.. The most common splitting procedure
consists of comparing the scores on the odd and even items of the test. The correlation between
the two scores obtained on the same subjects is then computed. The split-half reliability
coefficient provides a measure of the internal consistency of the scale.
The INTERNAL CONSISTENCY method also requires only a single administration of a test.
It is based on the correlations obtained between all items of the scale. It provides an evaluation
of the homogeneity of the scale (also called internal consistency). The internal consistency
coefficient has been shown to be mathematically equivalent to the mean of all split-half
coefficients obtained from different splits of a scale.
The RELIABILITY command also provides a method of assessing the quality of multiple-item
additive scales through the computation of split-half reliability and internal consistency statistics.
Test-retest reliability can be assessed using the REGRESSION or CORRELATION procedures.
Each selected variable is considered as a single item of the scale. The Xs and Ys are used in the
split half method to specify how the various items should be divided.
The dialog box provides a choice of various item statistics (e.g., mean, minimum, maximum,
standard deviation), inter-item variance-covariance and correlation matrices, total scale and item-
total statistics. The maximum number of items is limited to 90 items per scale.
STATISTICAL ANALYSIS - 137
OPTIONS
Item statistics - This option allows the display of summary statistics on each item in the
scale including the item mean, minimum, maximum, standard deviation and mean
correlation with other items. It also provides various statistics for the whole scale such
as the item means, variances, covariances and correlations.
Inter-item correlations - This option displays an inter-item correlation matrix that
allows the identification of items that have small correlations with the other items.
Variance/covariance - This option computes an inter-item variance-covariance matrix.
Item-total statistics - This option displays various statistics that allow the evaluation of
the effect of each item on the reliability of the scale. The output consists of the average
score of the scale and its variance when the item is excluded, the correlation of the
scores on this item with the sum of the scores of the remaining items, and the
Cronbach's alpha that would result from the exclusion of this item.
Split-half reliability - This option allows one to assess the correlation between two parts
of the scale. When selecting the variables, the Xs and Ys can be used to split the
various items into two halves. The output contains summary statistics for both scales
(mean, variance and standard deviation), the correlation between those scales, the
Spearman-Brown coefficient, and the Guttman split-half coefficient which does not
assume that the two parts have the same variance.
Internal consistency - This option allows the computation of Cronbach's alpha internal
consistency statistics. It has been shown to be equivalent to the average of all possible
split-half coefficients. The output also includes the mean inter-item correlation, and the
standardized item Alpha (the alpha that would have been obtained if all the items had
been standardized).
Sample output of reliability analysis
RELIABILITY ANALYSIS
Items statistics
Correlation matrix
DEP7 DEP8
Variance-covariance matrix
Item-total statistics
Split-half reliability
Reliability statistics
Runs test
The RUNS TEST is a procedure that can be used to test whether the ordered sequence in which
observations were obtained is random. In order to be carried out this test requires that all values
be dichotomized. The dialog box allows you to separate observations in two distinct groups using
the mean, the median or a user-specified value as a cutoff point.
OPTIONS
Cutoff point - This option allows you to specify how the values of a variable will be
dichotomized. The cutoff point used can be either the mean, the median or a user-
specified value. All observations falling below the cutoff point form one group, and all
observations equal to or above the cutoff point form the other group.
Value - This option is used only if you have a selected value as a cutoff point. The value
entered in this field is used as a cutoff point. All observations falling below this value
point form one group, and all observations equal to or above the cutoff point form the
other group. If the data are already dichotomous, specify a numeric value that lies
between those two values.
Mean = 9.5424
Number of runs = 31
Expected number = 29.8136
Cases
25 Lt Mean
34 Ge Mean
-----
59
Sensitivity analysis
When using a questionnaire or an instrument to identify people who suffer from a specific disease
(or any particular problem), the measure used is often associated with some diagnostic error. Two
types of errors are possible: 1) the instrument can falsely classify a healthy subject as suffering
from the disease (false positive), or 2) the instrument can fail to detect a person who has the
disease (false negative). The error rates depend on the quality of the instrument and on the cut-
off point used to classify the subjects. One problem is that increasing the cut-off point in order
to reduce the number of false negatives will usually generate an increase in false positives. The
sensitivity analysis allows one to assess the ability of a quantitative measure (X) to differentiate
a dichotomous criterion condition (Y) and provide guidelines to choose a cut-off point that will
offer an appropriate trade off between false-positive and false-negative error rates.
The program provides the level of sensitivity (i.e. the number of true cases detected by the test
divided by the total number of true cases in the sample) and the specificity (i.e the number of true
negatives divided by the total number of cases without the problem or disease) for each value of
the quantitative measure. The program also displays, for each value of the test, the percentage
of false-positives and false-negatives. If we plot, on a cartesian scale, and for each cutt-off point
the sensitivity at that point as a function of the proportion of false positives (or 1-specificity), and
connect those points, we obtain what is known as a ROC (receiver operating characteristic) curve.
This graph allows us to visualize the performance of the screening or diagnostic test used. If a
test has no discriminatory value, the ROC curve will be a diagonal line with a 45 degree angle
going from the lower left corner to the upper right corner of the graph. The ROC curve of a
perfect test will be composed of a vertical line going from the lower left to the upper left point,
and a horizontal line going from the upper left to the upper right corner. The higher the
sensitivity and specificity of a test at each cutoff point, the closest the curve will be to the upper
left corner of the graph, and the greater the area under the curve. The overall performance of a
test can be quantified by computing the area under the ROC curve (AUC). A perfect test would
yield an AUC of 1.0 while a useless test would yield an AUC of 0.5. Comparisons can also be
made among alternative tests by comparing their ROC curves or their AUC values.
Various methods have been proposed for computing the area under the ROC curve. SIMSTAT
provides two such methods. The first assumes that the categorical scale of the test results from
an underlying continuous variable. The second method adopts a nonparametric strategy that does
not make the assumption of a bivariate normal distribution. This measure of AUC is obtained by
computing the area underneath the straight lines that connect the various observed points of the
curves by using a trapezoidal method.
OPTIONS
Value - This option allows you to specify which value of the criterion variable will be used
to identify positive diagnosis.
142 - SIMSTAT for WINDOWS
Scale orientation - This option allows you to specify whether the scale is positively or
negatively related to the presence of the condition (disease). You must specify whether
this condition is associated with higher or lower values of the scale.
Sensitivity statistics - This option allows you to obtain the level of sensitivity
(proportion of positive cases correctly diagnosed as true) and specificity (proportion of
negative cases effectively diagnosed as false) for each value of the quantitative measure.
The values are reported in terms of absolute and relative frequencies.
Error rate statistics - This option allows you to obtain the number and percentage of
false-positive and false-negative diagnoses for each value of the quantitative measure.
The display also includes likelihood ratios for both positive and negative results.
ROC curve - This option allows you to obtain a receiver-operating-characteristic (ROC)
curve that displays the relationship between the sensitivity and 1-specificity.
Error rate graph - This option provides a line chart that displays the evolution of the
percentage of false-positives and false-negatives for the values of the scale.
Sign test
The SIGN TEST tests the hypothesis that two variables have the same distribution. This is
assessed by comparison of the numbers of positive and negative differences between values of the
two variables.
OPTIONS
Direction - This option allows you to select either a one-tailed (directional) or two-tailed
(non-directional) probability test.
Cases
Single-case design
Single case experimental design was originally developed for the study of animal and human
behaviors in the context of controlled laboratory experiments. This methodology is now currently
used in applied research such as the evaluation of behavior modification programs or other types
of clinical interventions, the effects of pharmacological agents on behaviors, or the impact of
educational and social intervention programs. It involves repeated objective measurement of a
single subject (dependent variable) over a period of time interspersed with changes in the
treatment condition (independent variable). If the application or withdrawal of the treatment
condition is associated with systematic changes in the behavior of the subject, then it is inferred
that the treatment has caused the observed changes. Whereas with traditional group design,
variability is treated as error which should be controlled with the use of experimental design and
statistical analysis in order to identify functional relations that supersede this variability,
advocates of single-case experimental design stress the importance of identifying and controlling
the source of this variability. By carefully monitoring the variability of measures taken on a single
subject it becomes possible to identify the source of this variability and to develop effective
methods of intervention. When applied to the evaluation of complex intervention programs, this
method facilitates the identification of the active ingredients of the intervention. The reliance
of single-case design on visual inspection (instead of statistical analysis) to identify the presence
of a functional relationship also provides assurance that only potent interventions that produce
clinically significant changes will be identified. The generality of the findings is strengthened
through systematic replications of the original experiment with other subjects in various settings,
conditions, or with other behaviors of the same subject.
The SINGLE CASE command provides some basic tools for studying the effect of an intervention
on the behavior of a single subject. The procedure will display a graph representing the evolution
of the dependent variable (Y) at various phases defined by the independent (X) variable. The
dialog box allows one to obtain various statistics for each phase of the analysis as well as various
graphic tools that can be used as judgemental aids to identify the experimental effect of the
intervention (smoothed data, trend lines, control bars, etc.).
OPTIONS
Statistics - This option box allows you to display statistics about the different phases of
the experiment. When set to Brief, the mean, standard deviation, minimum and
maximum values, and the number of cases are displayed on a single line. To obtain
additional statistics, such as the skewness, kurtosis, mode, median, etc., set this option
to Detailed.
Cumulative frequency - This option allows you to represent the values of the series as
a cumulative record of frequency.
STATISTICAL ANALYSIS - 145
Log transformation - This option converts all values in the series into their natural
logarithms.
Trend line - This option allows you to draw, for each condition, a line representing either
the mean, the regression slope, or a split middle trend line. This last method draws a
line through the median values of the first and second halves of each series.
Smoothing - This option allows the application of two methods of identifying trends in
noisy or irregular time series. The moving average procedure is obtained by averaging
a selected number of points on either side of a target value, while the running median
procedure is computed by finding the median value of a specified number of points on
either side of the original value. Successive smoothing can be achieved by specifying
more than one value. For example the following option:
Moving average 4 2 4
instructs SIMSTAT to proceed with three successive moving average smoothings using
4, 2, then 4 values to compute the mean.
Vertical line separators -This option lets you specify whether vertical lines should be
used in the time-series chart to delineate the various phases of the experiment.
Control bars - This option allows you to superimpose 3 horizontal bars that represent the
mean and the upper and lower limits of a confidence interval. Those bars can be used
as a judgemental aid to identify a change in the series. The interval option allows you
to specify the width of the confidence interval. Its value must be between 0% and 99%.
The minimum and maximum options allow you to specify which observation in the
series will be used to calculate the mean and the confidence limits. If those fields are
left blank, the first and the last observations will be used. For example, entering 1 and
10 as the minimum and maximum values tells SIMSTAT to compute the mean and the
confidence interval on the first 10 observations.
Confidence interval - This option allows you to set the confidence interval width for the
control bars. This interval width is expressed as a percentage and must lie between 1%
and 99%.
146 - SIMSTAT for WINDOWS
Time-series analysis
The TIME SERIES command allows the examination of time series data. The dialog box offers
various transformations to remove trends or seasonal dependence in a series and provides a
diagnostic of those transformations by displaying autocorrelation and partial autocorrelation
function plots of the transformed series. This procedure also allows the application of two
smoothing methods (i.e., moving average and running median) to identify trends in noisy time
series data.
OPTIONS
ANALYSIS PAGE
Log transformation - When enabled, this option converts all values in the series into their
natural logarithms.
Remove mean - When enabled, this option subtracts the mean from each value in the
series.
Difference - This transformation subtracts the preceding value from each value in the
series. The Number option allows you to set the number of difference operation to be
performed on the series.
Seasonality - The Seasonality option allows you to remove the seasonality in a series by
subtracting from every value the value that is a specified Number of lags behind it.
ACF plot - The ACF plot produces an autocorrelation function plot. This plot includes the
autocorrelation value, its variance and probability, and a graphic (text mode)
representation of those values from one to a specified number of lags.
PACF plot - This option allows you to obtain a table and a graphic representation of partial
autocorrelations with their variances and probabilities.
Number of lags - This option allows you to specify the maximum number of lags to be
displayed in the ACF and PACF plots.
CHART PAGE
Time series - This option allows the printing of a graphic representation of the
transformed series in either text, graphics mode or both. The Number option allows you
to restrict the number of observations to be plotted in text mode.
Smoothing - This option allows the application of two methods of identifying trends in
noisy or irregular time series data. The Moving average procedure is obtained by
averaging a selected number of points on either side of a target value, while the running
median procedure is computed by finding the median value in a specified number of
STATISTICAL ANALYSIS - 147
points on either side of the original value. Successive smoothing can be achieved by
specifying more than one value. For example the following option:
Moving average 4 2 4
instructs SIMSTAT to proceed with three successive moving average smoothings using
4, 2, then 4 values to compute the mean.
Control bars - This option allows you to display 3 horizontal bars that represent the mean
and the upper and lower limits of a confidence interval. Those bars can be used as a
judgemental aid to identify a change in the series. The Minimum and Maximum
options allow you to specify on which observations in the series the mean and
confidence limits will be calculated. If those fields are left blank, the first and the last
observations will be used. For example, specifying the limits 1 and 10 tells SIMSTAT
to compute the mean and the confidence interval for the first 10 observations.
Width - This option allows you to set the confidence interval width for the control bars.
This interval width is expressed as a percentage and must lie between 1% and 99%.
T-test analysis
T-TEST calculates either independent-sample t-tests or paired-sample t-tests to determine
whether two sample means are significantly different.
The paired-sample (or correlated) t-test compares the means between each pair of variables
assigned as dependent and independent. The independent t-test compares means on the
dependent variable for two groups defined by values of the independent variable. SIMSTAT
provides two distinct tests to take into account whether the two populations from which the
samples are drawn have equal or unequal variances. You can also specify whether the null
hypothesis should be evaluated using a one-tailed (directional) or a two-tailed (non-directional)
test.
OPTIONS
ANALYSIS TAB
Type of design - This option determines whether the design includes paired (correlated)
or independent samples.
Values of x - For independent samples, the program requires you to specify two values of
the grouping (or independent) variable that will be used to define the two groups.
Direction - The Direction of the statistical test can be one-tailed (directional) or two-tailed
(non-directional).
Confidence interval - The interval options allows you to set the width of the confidence
intervals around the two measures of effect size. The interval width is expressed as a
percentage between 1 and 99%. This value is also used when displaying barcharts with
a confidence interval or an error bar graph representing a confidence interval around
the mean.
CHART TAB
Mean/Error bar graph - This option displays a mean bar and/or an error bar representing
the variability of the mean or of the values in each group.
Type of error - This option allows you to select whether the error bar will represent the
standard deviation, the standard error or a user-defined confidence interval. The width
of this interval is set by the interval option.
With barchart - This option allows you to draw bars where each bar represents the mean
of a separate group. You can use the Type of Error option to add error bars.
150 - SIMSTAT for WINDOWS
Upper error bar only - When the bar chart option is selected and an error bar is
requested, this option allows you to specify whether the error bars displayed with the
mean bars should be displayed above and below the mean, or only above.
Link means - When chosen, this option connects the two means with a line.
Dual histogram - This option displays a dual histogram representing the distribution of
two numeric variables. You must supply the Number of bars bars to plot. A Normal
curve can also be superimposed on the histogram.The horizontal and vertical radio
buttons allow you to select between horizontal histograms where the two charts are
displayed side by side or vertical histograms displayed one above the other.
Wilcoxon test
The WILCOXON matched-pairs signed-ranks test is a procedure used to test whether two related
samples have been drawn from the same population. Like the sign test, it computes the
difference between the values of the two variables but takes into account the magnitude as well
as the direction of the differences. The Wilcoxon signed-ranks test is the nonparametric version
of the t-test for paired samples.
OPTION
Direction - This option allows you to request the program to select either a one-tailed or
two-tailed probability assessment.
One metric variable over time Time series plot Time-series | Time-series
Autocorrelation plot (ACF & PACF) Time-series | Time-series
Metric variable over time x nominal Interrupted time-series Time-series | Single case
or single case experimental design
All high-resolution charts created during a session are displayed in the Chart window. This
window can be used to view the charts and perform various operations on individual charts or
on the entire collection of charts. For example, you can modify the various chart attributes, save
those charts to disk, export them to another application using the clipboard or disk files, or print
them. It is also possible to delete a specific chart or to modify the order of those charts in this
window.
& Select the ERASE command from the EDIT menu or click on the button.
The list box displays the title of all charts in the Chart window.
& Select the chart you want to move by clicking on its title.
& Click on the up or down arrow buttons to move the chart up or down the list.
You may also drag the chart to its new location by keeping the mouse button down and dragging
the chart title to its new location.
WORKING WITH CHARTS - 157
& Select the CHART | SAVE command from the FILE menu or click on the button while
the Chart window is active.
& If the charts have never been saved before, a File Save dialog box will appear.
& Enter the name of the file under which you want to save the charts and press <Enter> or
click on the OK button. By default, SIMSTAT uses the .CHX extension for chart files. If
no extension is given, the program automatically adds this extension to the end of the file
name.
/ To save the charts under a different file name, choose the CHART | SAVE AS command
and provide a new file name.
& Select the CHART | OPEN command from the FILE menu or click on the button while
the Chart window is active.
/ Rather than creating a new chart file, you may want to add new charts to an existing chart
file. To do this, open the existing chart file where you want the new charts to be placed
before creating those charts.
& Select the CHART | NEW command from the FILE menu or click on the button while
the Chart window is active.
If any modification has been made to a chart in the current Chart window or if new charts
have been created, you will be asked if you would like to save the modifications to disk.
Select Yes if you want to save those modifications or No to clear the chart window without
saving the changes.
158 - SIMSTAT for WINDOWS
Customizing charts
After you create one or several charts, you can edit their title and axis labels, choose a different
font or font size, adjust the scaling on either axis, experiment with different colors or patterns,
add a legend, or make other adjustments to suit your needs. The current section presents the
various options available for customizing charts.
This dialog box provides 4 edit fields where you can create or edit the existing chart title,
and the labels on the left, bottom and right axis.
You can enter several lines of text for each title by pressing the <Enter> key at the end of
a line before entering the next line.
Font buttons on the right side of each edit box allow you to quickly change the font size or
style of the related title (Please note that the font setting is a global option and will be
applied to all charts in the Chart windows).
WORKING WITH CHARTS - 159
Axis selection - This group of radio buttons allows you to specify the appropriate axis that
you want to customize. In some charts, only the Y axis will be available.
Linear or Logarithmic scale - In some types of chart you can choose between a linear
or logarithmic axis. In a linear scale, the value of each major division is exactly the
same. In a logarithmically scaled axis, each major division of the axis represents 10
times the value of the previous major division.
Minimum and Maximum - SIMSTAT automatically adjusts the axis scales to fit the
range of values plotted against it. To manually set these values, type the desired
minimum and maximum for the axis selected.
Increment - SIMSTAT automatically selects the initial increment value used for the axis.
By default, this increment value is set to display 10 tick marks per axis. Increasing or
decreasing this value affects the distance between these tick marks as well as their
number. Grid lines are also affected by modification of this value.
Decimal - This option allows you to increase or decrease the number of decimal places used
to display the values on the axis.
Grid lines - This option lets you turn horizontal (Y axis) and vertical (X axis) grid lines
on and off. Grid lines extend from each tick mark on an axis to the opposite side of the
graph. To increase or decrease the number of grid lines per axis or the distance between
those lines, change the Increment value of the current scale.
A list box also allows you to choose among 3 different line styles to draw those grid
lines.
160 - SIMSTAT for WINDOWS
To resize the width or height of a legend, simply drag its border to resize it.
To set a default legend location upon creation of new charts, see the GLOBAL OPTIONS
command.
3D View
Some charts can be diplayed using a 3D perspective. When such an option is available, the
button on the toolbar is enabled. You can click on this button to turn on/off the 3D
perspective for the current chart.
Selecting the 3D VIEW command from the CHART menu or clicking on the button
gives access to the 3D View Property dialog box. This allows you to adjust the viewing
angles, object depth, and shadows of the 3D charts.
WORKING WITH CHARTS - 163
& Activate the zooming feature by clicking on the button or selecting the ZOOM IN
command from the CHART menu.
& Click with the mouse on the upper left corner of the area you want to display.
& Drag the mouse cursor to the lower left corner of the area.
& Release the mouse button.
SIMSTAT automatically resets the axis minimum and maximum values as well as the
increment value to coordinates near the defined area. Those new axis limits are usually
saved as soon as you move to another chart or switch to another window.
Exporting charts
SIMSTAT lets you transfer charts to the clipboard, or export them to other formats, so that they
can be viewed or edited by other applications. SIMSTAT currently supports 3 different file
formats: Windows Metafiles, Windows Bitmap, and tab separated values files.
8 - USING SCRIPTS
The script window is used to enter, edit, and execute commands. Those commands can be read
from a script file on disk, typed in by the user or automatically generated by the program. When
used with the RECORD feature, the script window can also be used as a log window to keep track
of the analyses performed during a session. Those commands may then be executed again,
providing an efficient way to automate statistical analysis. Additional commands also allow one
to create demonstration programs, computer assisted teaching lessons, and even computer
assisted data entry programs.
This section introduces you to various tasks that may be performed with script files such as how
to:
& Open an existing script file.
& Navigate in the script window and edit its contents.
& Execute a script or only part of it.
& Use the RECORD SCRIPT command to automatically generate commands.
& Write script files to disk.
The final part of this chapter provides programming information, including a reference section
with a description of all available commands, their syntax and related options.
168 - SIMSTAT for WINDOWS
SIMSTAT normal script files are plain text files with an .SCR extension. They are usually
created and edited from within the program but may also be created or edited using almost any
word processor or text editing program. However, if you use a word processor, make sure that
you save the script file as a plain text file.
SIMSTAT can also execute encrypted and compressed script files with an .SCZ extension. Once
you have developed a program, you may want to prevent others from altering your source file or
simply hide its contents. One reason would be to make sure that no one else will commercialize
your entire script or parts of it under their own name. This encrypting feature may also be useful
to prevent unauthorized changes to the original program or, in the context of computer assisted
instruction, to prevent students from cheating by looking at your code. Encrypted files are
created quite simply by saving an opened script under a filename with a .SCZ extension. The
resulting file will be about 50% to 80% smaller than the original file and may be run from within
SIMSTAT just as any other script file. However, the file can no longer be viewed or edited either
from within SIMSTAT or from an external editor.
USING SCRIPTS - 169
To open an existing script file, select the SCRIPT | OPEN command from the FILE menu. This
evokes an Open File dialog box. When this dialog box is displayed, the program points to the
default data directory and displays all available data files in this directory in the File Name list
box. To open a file, double click on its name or select it and click on the OK button.
If the name of the script file you want to open is not displayed, type the filename in the File Name
box (including drive and path if necessary) and select the OK button.
You may also use the following methods to locate the data file:
& If the script file is on a different disk, click on the down arrow of the Drives list box to
display available drives and select the disk where the file is located.
& If the file is in a different directory, double-click on the directory names in the Directory (or
Folder) to move through the directory tree.
If the file name is displayed in the File Name list box, double-click it to open the file or select it
and click on the OK button.
If you want to open a script file that has been used previously, click on the down arrow button
at the right side of the File Name edit box and select the filename.
If the selected file is an encrypted file (with a .SCZ extension), the text editor will be hidden and
only the name of file will be displayed in the middle of the script window.
/ To prevent accidental modifications to the contents of a script file, activate the Read Only
check box in the Open File dialog box before clicking on the OK button. While this
procedure disables all editing features including the RECORD SCRIPT command, it will
still be possible to view or print the content of the script window, and to cut text from it and
paste this text to another SIMSTAT window or another application. To prevent these
operations, create an encrypted version of the script file by saving the file under a new file
name with a .SCZ extension.
170 - SIMSTAT for WINDOWS
Key Action
<Left> Move the caret one character to the left.
<Right> Move the caret one character to the right.
<Up> Move one line up.
<Down> Move one line down.
<PgUp> Move one screen up.
<PgDn> Move one screen down.
<Home> Move to the beginning of the current line.
<End> Move to the end of the current line.
<Ctrl-Home> Move to the first line of the script.
<Ctrl-End> Move to the last line of the script.
<Ctrl-Right> Move to the beginning of the next word.
<Ctrl-Left> Move to the beginning of the previous word.
You can also move to a specific string within the current script by choosing the FIND command
in the EDIT menu or by pressing <Ctrl-F>.
The followings editing commands are also available:
Key Action
<BackSpace> Delete the character to the left of the caret.
<Del> Delete the current character or selected text.
<Ctrl-Ins> or <Ctrl-C> Copy the selected text to the clipboard.
<Shift-Del> or <Ctrl-X> Delete the selected text after copying it to the clipboard.
<Shift-Ins> or <Ctrl-V> Paste the text from the clipboard.
<Ctrl-Z> Undo the last operation.
<Ctrl-Shift-0> to Set the position of marker (0-9) to the current caret
<Ctrl-Shift-9> position.
<Ctrl-0> to <Ctrl-9> Move to the previously set marker (0-9).
USING SCRIPTS - 171
This feature automatically generates proper commands corresponding to the action you undertake
using the menus and dialog boxes, and appends them to the end of the current script.
To activate this feature, select the RECORD option from the SCRIPT menu. The Record
keyword will appear on the status line. From now on, almost every action you perform will be
recorded by SIMSTAT. To deactivate this feature, follow the same steps a second time. You can
also press the <Ctrl-F10> key combination or click on the Record keyword on the status line
to toggle the RECORD script feature on and off.
The extensive correspondence between the commands/keywords and the options available
through the dialog boxes greatly facilitates the learning of the script language syntax. However,
the easiest way for a beginner to write but also to become familiar with this syntax and the
various keywords is to use the RECORD SCRIPT feature. You can experiment by performing
some analysis and looking closely at the commands generated. This feature is also an efficient
method to write script files rapidly and easily.
Running a script
To run an entire script
& Click on the button or select the RUN command from the SCRIPT menu.
& Click on the button or select the RUN SELECTION command from the SCRIPT
menu.
/ To run a single command, simply position the caret anywhere on the first line of
the command you want to execute and activate the RUN SELECTION command.
& Click on the button or select the RUN FROM CURSOR command from the
SCRIPT menu.
172 - SIMSTAT for WINDOWS
Syntax Convention
This section outlines the syntax conventions of the various commands and options. Unless
specified otherwise, you can type commands and options in either uppercase or lowercase letters.
You will find below a short description of those elements.
UPPERCASE Items in capital letters are keywords. Keywords are a required part
of the statement syntax, unless they are enclosed in brackets or
specified as optional.
lowercase italic Items in lowercase italic characters are placeholders for information
you must supply in the statement. Several types of information can
be required such as:
variable a single variable name.
varlist One or several variable names. A set of consecutive
variables can be designated by typing the first and last
variable names separated by two dots (..). For
example the DEPRES1..DEPRES29 expression refers
to all the variables in the active file starting from
DEPRES1 up to, and including DEPRES29. A
variable list can span over several lines.
filename A filename with a valid extension. By default the file
is assumed to reside in the starting directory. To refer
to a file in another location, specify the full path name.
integer Integer value. You can either use an equal sign '='
between the option and the integer or put the integer
between parentheses.
real Real value. May be entered in either normal or
scientific notation, and can be put after an equal sign
or between parentheses.
string A string of alphabetical as well as numeric characters.
Some commands require the string to be enclosed
between quotation marks (").
color A keyword representing a color. Valid keywords are:
BLACK PURPLE BLUE
MAROON TEAL FUSCHIA
GREEN GRAY AQUA
OLIVE SILVER WHITE
NAVY RED
BLUE LIME
[] Items inside square brackets are optional.
174 - SIMSTAT for WINDOWS
You may also declare a new memory variable in any other command by explicitly stating its data
type on its first appearance. For example:
SIMSTAT gives each variable an initial value at the time it is declared. A string variable is
initialized to the empty string, a string with no characters (""). A numeric variable is initialized
to zero.
You can also access any variable (or field) of the currently opened data file by putting a DB.
prefix to the variable's name. For example, to modify the value of a variable named AGE in the
current data file, you can use a LET command in the following way:
You can also read the value stored in this variable just like you would do with any other memory
variable:
All reading and writing operations on data file variables are performed on the currently selected
record. In order to access the various records in the data file you need to use the RECORD
command.
SIMSTAT provides several predefined memory variables holding time and date related
information:
Variable Returns
$CURRENT_YEAR Current year
$CURRENT_MONTH Current month number (from 1 to 12)
$CURRENT_DAY Current day of the month (from 1 to 31)
$CURRENT_WEEKDAY Current day of the week (from 1 to 7)
$CURRENT_TIME Current time of the day in seconds with one decimal
place (tenth of a second).
$CURRENT_RECORD Current record number
$NB_RECORDS Number of records currently displayed
176 - SIMSTAT for WINDOWS
ARITHMETIC OPERATOR
+ Addition
- Subtraction
* Multiplication
/ Division
^ Exponentiation
Interactive commands:
Command descriptions
APPENDFROM
Syntax:
APPENDFROM filename;
Description:
The APPENDFROM command appends data from an existing .DBF data file to the current
data file. All variables with matching names and types are appended to the current file. If
variable length differs, data in the destination data file is either truncated or padded with
spaces. Deleted records in the source file are not appended to the target file.
Example:
OPEN C:\SIMSTAT\DATA\ANNUAL.DBF;
APPENDFROM C:\SIMSTAT\DATA\DECEMBER.DBF;
BEEP
Syntax:
BEEP;
Description:
BINOMIAL
Syntax:
Description:
The BINOMIAL test allows you to assess whether the observed number of cases in a
dichotomous variable is the same as that expected from a specified binomial distribution.
The observations can be divided either below or above the mean, the median or a
user-specified cutoff value. Alternatively, the analysis can also be restricted to cases equal
to two specified values. The user can also specify the test proportion.
182 - SIMSTAT for WINDOWS
Options:
Cutoff value
VALUE (real [,real]) Cuttoff value / values of X
| MEAN Mean
| MEDIAN Median
BOOTSTRAP1
Syntax:
BOOTSTRAP1 varlist [/options];
Description:
BOOTSTRAP1 performs bootstrap simulation to estimate the distribution of descriptive
statistics in a population (e.g., mean, median, variance). The program draws a specified
number of observations from the sample and computes the estimator for the subsample. This
procedure is performed many times (10 to 30,000 times). The options allow you to display
information about the estimator distribution including descriptive statistics, frequency table,
percentile table and histogram of the estimator distribution. The program also computes
nonparametric and bias-corrected bootstrap confidence intervals. If no sample size is
specified (option SIZE), the bootstrap sample size is automatically adjusted to the size of the
original sample.
Options:
SIZE=integer Size of each sample
SAMPLING=integer Number of samples
SEED=integer Initial seed value
Choice of estimator
MEAN Mean
| VARIANCE Variance
| STDDEV Standard deviation
| STDERR Standard error
| MEDIAN Median
| KURTOSIS Kurtosis
| SKEWNESS Skewness
DESC Descriptive statistics
INTERVAL=real Confidence intervals
PTILES=integer Percentile table
HISTOGRAM Histogram
NBAR=integer Nb of bars/intervals
NORMAL Normal curve
PANEL Displays the dialog box
SCRIPT LANGUAGE REFERENCE - 183
BOOTSTRAP2
Syntax:
BOOTSTRAP2 varlist BY varlist [/options];
Description:
Options:
SIZE=integer Size of each sample
SAMPLING=integer Number of samples
SEED=integer Initial seed value
Choice of statistics
TAU-A Kendall's Tau-A
| TAU-B Kendall's Tau-B
| TAU-C Kendall-Stuart's Tau-C
| D-SYM Somers' D symmetric
| D-XDEP Somers' D (X dependent)
| D-YDEP Somers' D (Y dependent)
| GAMMA Gamma
| RHO Spearman's Rho
| R Pearson's r
| SLOPE Regression slope
| INTERCEPT Regression intercept
| S-T Student's T
| S-F Student's F
| M-W Mann-Whitney
| WILCOXON Wilcoxon (W value)
| SIGN Sign test (Z value)
| K-W Kruskal-Wallis
| MEDIAN Median test (Z value)
| AGREE Percentage of agreement
| KAPPA Cohen's kappa
| SCOTT Scott's pi
| NFREE Free marginal (nominal scale)
| KRBAR Krippendorff's r bar
| KR Krippendorff's R
| OFREE Free marginal (ordinal scale)
184 - SIMSTAT for WINDOWS
BOX...ENDBOX
Syntax:
BOX [Options]
·
·
·
ENDBOX;
Description:
The BOX command displays a window with textual information. By default the window is
positioned in the middle of the screen. The TOP and LEFT options can also be used to
specify the position of the window's upper left corner. The parameter for these two options
is an integer value between 0 a 100 expressing a percentage of the screen height and width.
The window stays on screen until the user presses <Enter> or clicks on the OK button. If
the NOBUTTON option is used, the window stays on screen until a key is pressed. The
DELAY option allows you to insert the minimum length of time the box should be displayed
on screen before the user can proceed. The colors of the text in the box can also be altered
using the COLOR option.
Options:
DELAY=integer Length of delay (msec)
TOP=integer Vertical position of the box’s upper left
corner (0 to 100)
LEFT=integer Horizontal position of the box’s upper
left corner (0 to 100)
color Text color (see below)
NOBUTTON Hide the OK button.
BEEP Sounds a beep using computer’s speaker.
Valid Colors:
Black Maroon Green Olive Navy Yellow Purple Teal
Gray Silver Red Lime Blue Fuchsia Aqua White
Example:
BOX TOP=10 LEFT=10 COLOR=NAVY
The red line drawn in the scatterplot
is the regression line.
ENDBOX;
SCRIPT LANGUAGE REFERENCE - 185
BREAKDOWN
Syntax:
Description:
The BREAKDOWN command computes descriptive statistics for various sub-groups within
the entire sample. Statistics are computed for each variable on the first list of variable, within
groups defined by the values of the second list (grouping or independent variables). This
command also allows you to obtain a multiple Box-&-Whisker plot that can be used to
compare the distribution of the dependent variable among several sub-groups.
Options:
DETAIL Detailed statistics
RANGE (integer, integer) Range of X
BOXPLOT Box-&-Whisker plot
PANEL Display the dialog box
CALL
Syntax:
CALL filename;
Description:
This procedure executes another script file. After executing the external script file, the
program continues at the statement following the CALL command. If no extension is
provided, the program will successively look for an existing file name with an “.SCR” and
an “.SCZ” extension. If no path information is provided, SIMSTAT will first look in the
same directory as the calling script file and then in the default script directory.
Example:
CALL C:\DEMO\LESSON1.SCR;
186 - SIMSTAT for WINDOWS
CHART
Syntax:
CHART [options];
Description:
The CHART command allows you to modify various properties of the currently displayed
chart, or navigate through the charts either to display another chart on the screen or modify
some features of a chart currently not displayed.
Options:
FIRST Move to the first chart
LAST Move to the last chart
NEXT Move to the next chart
PRIOR Move to the previous chart
3D ON | OFF Add or remove 3D perspective
GRIDX ON | OFF Horizontal grid
GRIDY ON | OFF Vertical grid
GRIDY2 ON | OFF Second vertical grid
SCALEX (value,value) Horizontal axis limits
SCALEY (value,value) Vertical axis limits
INCX=integer Increment value of the horizontal axis
INCY=integer Increment value of the vertical axis
DECX=integer Decimal places for values on the X axis
DEXY=integer Decimal places for values on the Y axis
TITLE "string" Title string
LABELX "string" Horizontal axis string
LABELY "string" Vertical axis string
LABELY2 "string" Second vertical axis
CHI-SQUARE
Syntax:
Description:
The CHISQUARE command performs a one-sample chi-square test that allows to assess
whether there is a difference between the observed number of cases in various categories and
the expected frequencies in those same categories. The options allow you to restrict the test
to specific values and to specify the expected frequencies.
SCRIPT LANGUAGE REFERENCE - 187
Options:
VALUES (real real ...) Expected values
FREQ (real real ...) Expected frequencies
PANEL Display the dialog box
CLUSTER
Syntax:
CLUSTER varlist /[options];
Description:
This procedure performs hierarchical agglomerative cluster analysis of a distance or
similarity matrix. Seven forms of clustering are presently available: the four average
linkage procedures (unweighted pair group, unweighted centroid, weighted pair group, and
weighted centroid [or median]); nearest and farthest linkage, and minimum variance.
Requires MVSP v2.2.
Options:
Select a transformation
LOG10 Log base 10
| LOGE Log base e
| LOG2 Log base 2
| SQRT Square root
| RATIO Log ratio
TRANSPOSE Transpose data
Select a coefficient (default: EUCLID)
EUCLID Euclidian distance
| SEUCLID Squared Euclidian distance
| STEUCLID Standardized Euclidian distance
| COSINE Cosine theta distance
| MANHAT Manhattan metric distance
| CANBER Canberra metric distance
| CHORD Chord distance
| CHISQR Chi-square distance
| AVERAGE Average distance
| MEAN Mean character difference distance
| PEARSON Pearson product moment correlation
| SPEARMAN Spearman rank order correlation
| PERCENT Percent similarity coefficient
| GOWER Gower general similarity coefficient
| SORENSEN Sorensen's coefficient
| JACCARD Jaccard's coefficient
| MATCH Simple matching coefficient
| YULE Yule coefficient
| NEI Nei & Lei's coefficient
COMPUTE
Syntax:
Description:
The COMPUTE command allows the transformation of existing values of a variable or the
computation of a new variable. SIMSTAT offers more than 50 operations and functions
including numerical operators, trigonometric transformations (cos, sin, log, etc.), statistical
functions (mean, minimum, maximum across variables or cases, etc.), and date and random
number operations. (For more information on the available transformation functions
available, see the “Computing values” section, page 50.)
Examples:
or
FILTER RELIGION = 1;
COMPUTE PREDFACT = 1.235;
FILTER .NOT. RELIGION = 1;
COMPUTE PREDFACT = 0.656;
SCRIPT LANGUAGE REFERENCE - 189
CORANAL
Syntax:
CORANAL varlist /[options];
Description:
The correspondence analysis (or reciprocal averaging) procedure performs several varieties
of correspondence analysis including detrended correspondence analysis (DCA).
Correspondence analysis in general is well suited for working with count or
presence/absence data, whereas PCA is geared more towards measurement data on a
continuous scale (although PCA can also be performed on count and binary data. Requires
MVSP v2.2.
Options:
Select a transformation
LOG10 Log base 10
| LOGE Log base e
| LOG2 Log base 2
| SQRT Square root
| RATIO Logratio
Computation algorithm
RECIPROCAL Reciprocal averaging
| JACOBI Cyclic Jacobi
Output of graphics
PLOT Text scattergrams
| GPLOT Graphic scattergrams
CORRELATION
Syntax:
Description:
Options:
CROSSTAB
Syntax:
Description:
The CROSSTAB command computes a contingency table for two variables where rows
represent all the independent variable (x) values while the columns represent all the
dependent (y) variable values. The options allow you to include various statistics in the table
and obtain measures of association for nominal level (chi-square, phi, contingency
coefficient) and ordinal level (gamma, tau-b, tau-c, Somers' d, etc.) variables. It also allows
you to display a 3-d barchart of the two variables.
SCRIPT LANGUAGE REFERENCE - 191
Options:
Sort table by
FREQ Ascending frequency
| DFREQ Descending frequency
| VALUE Ascending value
| DVALUE Descending value
TABLE Display table
ROWPCT Row percentages
COLPCT Column percentages
TOTPCT Total percentages
EXPECTED Expected values
RESID Chi-square residuals
SRESID Standardized residuals
CHI2 Chi-square statistics
LRATIO Likelihood ratio statistics
CONTINGENCY Contingency coefficient
PHI Phi (2 x 2) or Cramer’s V
TAU-B Kendall’s tau-b
TAU-C Kendall’s tau-c
GAMMA Goodman-Kruskal’s gamma
SOMERS Somers’ d
RHO Spearman’s Rho
PEARSON pearson’s r
BARCHART 2 dimension barchart
OVERLAP Overlapping bars
STACKED Stacked bars
100% 100% stacked bars
2D 2-D perspective
3D 3-D perspective
PANEL Display the dialog box
DATA...ENDDATA
Syntax:
DATA
.
.
.
ENDDATA;
Description:
The DATA command allows you to define temporary data to be analyzed. The first line
following the DATA keyword must contain the variable names, while the remaining lines
hold the data. SIMSTAT writes the embedded information to a temporary file named
TEMP.DBF and automatically opens it for analysis. For more information on the proper
format to use, see information on ASCII files format.
192 - SIMSTAT for WINDOWS
Example:
DATA
CYLINDERS, MPG, ACCEL
4 15.0 6.3
4 17.2 5.9
6 13.2 5.3
6 12.4 6.2
6 12.4 5.8
ENDDATA;
DEFINE or DIM
Syntax:
Description:
The DEFINE command allows you to explicitly declare a new memory variable and specify
its type. Using a separate DEFINE statement for each variable, along with an explanation
of the variable's purpose at the beginning of each subroutine and function, makes the script
easier to debug and maintain.
Examples:
DELAY
Syntax:
DELAY (integer);
Description:
The DELAY command causes a delay in a program for a specified number of milliseconds.
Example:
DESC
Syntax:
DESC varlist;
Description:
The DESC command displays the mean, standard deviation, minimum and maximum values
of each specified variable. To obtain other descriptive statistics such as the variance,
skewness, kurtosis, mode, median, etc., see the FREQUENCY command.
DIVERSITY
Syntax:
Description:
This procedure computes three diversity indices commonly used in ecology, Simpson's,
Shannon's, and Brillouin's. Requires MVSP v2.2.
Options:
TRANSPOSE Transpose data
Select a transformation (default: LOG10)
LOG10 Log base 10
| LOGE Log base e
| LOG2 Log base 2
Select a coefficient (default: SIMPSON)
SIMPSON Simpson's diversity index
| SHANNON Shannon's diversity index
| BRILLOUIN Brillouin's diversity index
FACTOR
Syntax:
Description:
Options:
Type of analysis
PCA Principal Component
| IMAGE Image Covariance Analysis
FILTER
Syntax:
FILTER [string];
Description:
The FILTER command allows you to temporarily select cases according to some logical
condition. You can use this command to restrict your analysis to a subsample of cases or to
temporarily exclude some subjects. These conditions are specified in a logical expression
that may consist of a simple expression or include many expressions related by logical
operators (AND, OR, XOR). Most xBase functions (see page 240) can be used with this
command provided that the final expression can be evaluated as either true or false. The
selection stays effective until the logical expression is changed or the selection deactivated.
When used alone, this command deactivates the previous selection.
Examples:
FREQUENCY
Syntax:
Description:
Options:
FRIEDMAN
Syntax:
FRIEDMAN varlist;
Description:
The FRIEDMAN test is a procedure for testing whether two or more related samples have
been drawn from the same population. The output displays the mean rank of each variable,
the number of cases, chi-square, degree of freedom and probability value.
196 - SIMSTAT for WINDOWS
FULL
Syntax:
Description:
The FULL command allows you to perform various statistical analyses such as frequency
analysis, crosstabulation or multiple regression on successive bootstrap samples. The first
set of options allows you set the sample size and the number of samples to be drawn from
the original sample. A second set allows you to specify which analysis to perform and set
the options normally available when calling the chosen statistical procedure. This second
set of options allows to control how the analysis is to be performed and what statistics are
to be printed. If no sample size is specified (option SIZE), the bootstrap sample size is
automatically adjusted to the size of the original sample.
Options:
GLMANOVA
Syntax:
Description:
Options:
Adjustment method
REGRESSION Regression approach
| NONEXP Nonexperimental
| HIERARCHICAL Hierarchical
GOTO
Syntax:
GOTO label;
Description:
This command branches to another part of the program and continues processing the
commands at that point. The line that the program is to switch to is marked with a label
preceded by a colon_(:).
Example:
GOTO JanuaryStat;
:JanuaryStat;
198 - SIMSTAT for WINDOWS
GOSUB
Syntax:
GOSUB label;
Description:
This command branches to another part of the program and continues processing the
commands at that point until the RETURN keyword is encountered. The program then
continues execution at the statement following the GOSUB command.
IF..THEN...ELSE
Syntax:
Description:
The IF command allows you to specify a condition that must be met for a command to be
carried out. If the condition if true, the first command is executed. If the condition is false,
the command appearing after the ELSE keyword is executed. If the keyword ELSE is not
used, nothing is performed and the execution continues with the next statement. When used
with the GOTO command, this command can increase the flexibility of the program by
allowing SIMSTAT to switch to different parts of the program or perform specific actions
under certain conditions.
Valid expressions:
A valid expression consists of an existing memory or a data file variable name, and a valid
relational operator followed by a string or numeric expression. This numeric expression may
consist of a numeric constant, another numeric variable, or an equation with arithmetic
operations and mathematical functions (see page 176 for a list of available functions).
Examples:
IMPORT
Syntax:
IMPORT filename;
Description:
This command reads a data file produced by other applications and creates a new data file
that may be used by SIMSTAT. The extension of the supplied filename is used to determine
which kind of file is to be imported.
Examples:
IMPORT C:\LOTUS\DATA\SURVEY.WK3;
IMPORT C:\SPSSWIN\DATA\IMPACT.SAV:
INPUT
Syntax:
INPUT $varname [AS type] "expression" [options];
Description:
The INPUT command allows you to get a value from the user and store the result in a user
defined string or numeric variable. When a value is already stored in the specified variable,
it will be presented as the default value to the user. Use the CLEAR option to erase this
value. The LEN option can also be used to increase or decrease the maximum length of
input. By default the dialog box is positioned in the center of the screen. However, the
LEFT and TOP options can be used to specify the position of the box's upper left corner.
The parameter for these two options is an integer value between 0 a 100 expressing a
percentage of the screen height or width. If the variable specified is a numeric variable, you
can restrict the valid range of responses by using the MIN and/or the MAX options. By
200 - SIMSTAT for WINDOWS
default, the number of decimals displayed is set to 0 and user's input is restricted to integer
values. The DEC option can be used to alter the number of decimal places to display.
Options:
Examples:
Valid Colors:
INTERRATERS
Syntax:
Description:
The INTERRATERS command produces an inter-rater agreement table that consists of a
square table where rows and columns contain the same categories used in both variables.
Options:
Sort table by...
FREQ Ascending frequency
| DFREQ Descending frequency
| VALUE Ascending value
| DVALUE Descending value
ITEM
Syntax:
Description:
The ITEM command perfroms a classical item analysis for multiple choice item
questionnaires. Requires STATITEM v1.0.
Options:
KEYFILE Specify that key responses are stored in
a key file.
LISTWISE Eliminate cases with missing values.
ISTAT Display item statistics.
ALTERNATIVE Display statistics for alternate items.
HILOW=integer Set the discrimination index to a
percentage between 10 and 50%.
IRATES Display item-total response rates.
ICC Display item characteristic curves.
SMOOTHED Apply smoothing to item characteristic
curves.
BREAKDOWN=integer Display an endorsement breakdown table
for up to 10 different groups.
TSTAT Display detailed statistics of total
scores.
TFREQ Display a frequency table of total
scores.
SAVE Save the total scores in a data file.
PANEL Display the dialog box.
202 - SIMSTAT for WINDOWS
KRUSKAL
Syntax:
Description:
Options:
VALUES (integer, integer) Range of X
PANEL Show dialog box
KS1
Syntax:
Description:
Options:
Type of distribution
NORMAL Normal distribution
| UNIFORM Uniform distribution
VALUES (real, real) Mean and standard deviation of a normal
distribution or minimum and maximum of a
uniform distribution
PANEL Display the dialog box
SCRIPT LANGUAGE REFERENCE - 203
KS2
Syntax:
Description:
Options:
LET
Syntax:
Description:
The LET command assigns the value of the expression on the right side of the assignment
operator (=) to the variable on the left side of the operator. The assignment statement must
do the following:
Examples:
You can also use a variable on both sides of the first assignment statement that uses it. For
example, the following statement increases the value of the variable $COUNT by one.
In addition to basic arithmetic operations, you can use various functions including
mathematical procedures, trigonometric functions and random number functions on the right
side of the expression (see page 176 for a list of available functions).
204 - SIMSTAT for WINDOWS
You may also use parentheses to control the evaluation sequence such as in:
LIST
Syntax:
Description:
The LIST command displays a listing of the values of the specified variables. The N option
can be used to restrict the listing to the first N cases in the file.
LOGISTIC
Syntax:
Description:
Options:
MANN
Syntax:
Description:
The MANN command produces a Mann-Whitney U test that evaluates the hypothesis that
two independent samples have the same distribution. The Mann-Whitney U is the
nonparametric version of the t-test for independent samples. This test is performed on the
dependent variable divided into two groups as defined by values of the independent
(grouping) variable. The probability test performed can be either one- or two-tailed.
Options:
McNEMAR
Syntax:
Description:
Options:
MEDIAN
Syntax:
Description:
The MEDIAN test is a procedure for testing whether two or more independent groups differ
in central tendencies. It tests the likelihood that those groups were drawn from populations
with the same median. The output displays the number of cases greater than, less than, and
equal to the median for each category of the grouping variable. Also displayed are the
median, chi-square, degree of freedom and probability value.
Options:
MENU...ENDMENU
Syntax:
MENU [options]
·
·
·
ENDMENU;
Description:
The MENU command allows you to define a bouncing bar menu. Every line between the
MENU and ENDMENU commands will become a menu item. The maximum number of
items is 30. An optional '&' character can be inserted in the command file to specify an
accelerator key that, when pressed, will select this item. A single line command can be
associated with a menu item by putting a command between this menu item and the
associated command. A menu separator can also be added by putting a "-" character on a
separate line.
By default, the menu is displayed in the middle of the screen. The TOP and LEFT options
can also be used to specify the position of the window's upper left corner. The parameter for
these two options is an integer value between 0 and 100 expressing a percentage of the
screen height and width.
SCRIPT LANGUAGE REFERENCE - 207
Options:
MOSES
Syntax:
MOSES varlist BY varlist [/options];
Description:
The MOSES test of extreme reactions tests whether the range of an ordinal variable is the same
in a control group as in a comparison group, as defined by a grouping variable. The output
includes counts for both groups, number of outliers removed, the span of the control group before
and after outliers are removed, and one-tailed probability of the span with and without outliers.
By default, 5% of the cases are trimmed from each end of the range of the control group to
remove outliers.
Options:
VALUES (int, int) Values of independent variable
OUTLIERS=integer Number of outliers to remove
PANEL Display the dialog box
MRESPONSE
Syntax:
Description:
The MRESPONSE (multiple responses) command allows you to obtain frequency analyses
and crosstabulation analyses on variables which can legitimately have more than one
response. These multiple responses are stored in as many variables as necessary. Choosing
all these variables as dependent (X) or independent (Y) variables allows you to gather all
these responses and treat them as if they were stored in a single variable.
208 - SIMSTAT for WINDOWS
Options:
MULTX Treat X as multiple responses
MULTY Treat Y as multiple responses
PANEL Display the dialog box
FREQ varlist [/options];
CROSSTAB varlist BY varlist [/options];
Example:
MRESPONSES MULTY
CROSSTAB INCOME1 INCOME2 BY SEX /TABLE DFREQ;
MULTREG
Syntax:
MULTREG varlist BY varlist [/options];
Description:
The MULREG command allows you to perform multiple regression analysis to predict a
dependent variable from many independent variables. SIMSTAT provides various
regression methods including standard regression, hierarchical entry, forward selection,
backward selection, stepwise selection. The options also allow you to display a wide range
of statistics and perform various tests on residual values.
Options:
Type of regression
HIERARCHICAL Hierarchical entry
| FORWARD Forward selection
| BACKWARD Backward elimination
| STEPWISE Stepwise selection
| STANDARD Enter all variables
PIN=real P value to enter
POUT=real P value to remove
TOLERANCE=real Minimum tolerance value
STEP Show each step
ANOVA ANOVA table
CHANGE Test of changes in R-square
HISTORY History of changes in R
SUMMARY Summary ANOVA table
EQUATION Variables in the equation
OUT Variables not in the equation
CI=integer Width of confidence interval
CPLOT Casewise plot of residuals
OUTLIERS=real Outliers criterion (s.d.)
DURBIN Durbin-Watson statistic
RPLOT Residuals scatterplot
PPLOT Normal plot of residuals
SAVE Save predicted values and residuals
PANEL Display the dialog box
SCRIPT LANGUAGE REFERENCE - 209
NOTE
Syntax:
Description:
The NOTE command displays a single line string on the background screen. By default, the
note line is displayed horizontally centered and at the bottom of the screen with a font size
of 10 points. The TOP and LEFT options can also be used to specify the position of the text's
upper left corner. The parameter for these two options is an integer value between 0 and 100
expressing a percentage of the screen height and width. Other options allow you to control
the size, style and color of the displayed text.
Options:
Examples:
Valid Colors:
NPAR
Syntax:
Description:
The NPAR command displays a matrix for various measures of association and concordance
between two variables. The options provide counts and exact probabilities of each coefficient
or asterisks that show the probability level reached. This probability test can be either one-
or two-tailed.
Options:
Type of statistics
TAU-A Kendall's Tau-a
| TAU-B Kendall's Tau-b
| TAU-C Kendall-Stuart's Tau-C
| D-SYM Somers' D (symmetric)
| D-XDEP Somers' D (X dependent)
| D-YDEP Somers' D (Y dependent)
| GAMMA Gamma
| RHO Spearman's Rho
| R Pearson's R
ONEWAY
Syntax:
Description:
The ONEWAY command performs a one-way analysis of variance for all dependent
variables on groups defined by each categorical (numeric) independent variable. It allows
testing whether the means of the groups (2 or more) are not all equals to each other.
ONEWAY provides one-way variance analysis and a standard table including between and
within groups sums of squares, mean squares, and degrees of freedom, F-ratio and its
associated probability. You can also obtain for each group, descriptive statistics including
count, mean, standard deviation, standard error and a user-specified confidence interval for
the mean. Various measures of effect size and post hoc comparisons can also be obtained
SCRIPT LANGUAGE REFERENCE - 211
as well as various graphs such as a barchart representing the mean of each group, an error
bar diagram or a deviation chart where each bar represents either the standard deviation, the
standard error or a user specified confidence interval.
Options:
OPEN
Syntax:
OPEN filename;
Description:
The OPEN command reads a file. The extension of the file is used to determine what kind
of file should be opened. When the file name includes a .DBF extension, SIMSTAT closes
the existing data file and opens this new data file. When an .SNB extension is used, the
program clears the current notebook and loads the specified notebook file. If the file
extension is .CHX then SIMSTAT clears the content of the Chart window and loads the
specified chart file.
Examples:
PCA
Syntax:
PCA varlist /[options];
Description:
This procedure performs a R-mode principal component analysis. The component loadings
are scaled to unity, so that the sum of squares of an eigenvector equals 1, and the component
scores are scaled so that the sum of squares equals the eigenvalue. Q-mode PCA will
generally have the opposite scaling. Requires MVSP v2.2.
Options:
Select a transformation
LOG10 Log base 10
| LOGE Log base e
| LOG2 Log base 2
| SQRT Square root
| RATIO Logratio
TRANSPOSE Transpose data
CENTER Centered data
STANDARDIZE Standardize data
Minimum eigenvalue (default = all)
KAISER Kaiser's rule
| JOLLIFFE Jolliffe's rule
| MINEIGEN=real Specify a minimum eigenvalue
ACCURACY=real Accuracy of solution
Output of graphics
PLOT Text scattergrams
| GPLOT Graphic scattergrams
PCO
Syntax:
PCO varlist /[options];
Description:
Principal coordinates analysis (PCO) is a generalized form of PCA. Whereas PCA implicitly
uses either a covariance or correlation matrix, PCO allows you to input any matrix of metric
values. PCO may be used with any of the distances calculated by MVSP except for the
squared Euclidean distance. Of the similarity measures only Gower's is metric. PCO is
calculated as a Q-mode eigenanalysis, therefore it only gives the eigenvectors, not scores.
Note that a PCO of Euclidean distances will give the same results as a Q-mode PCA.
Requires MVSP v2.2.
SCRIPT LANGUAGE REFERENCE - 213
Options:
Transformation
LOG10 Log base 10
| LOGE Log base e
| LOG2 Log base 2
| SQRT Square root
| RATIO Logratio
TRANSPOSE Transpose data
Select a coefficient (default: EUCLID)
EUCLID Euclidian distance
| STEUCLID Standardized Euclidian distance
| COSINE Cosine theta distance
| MANHAT Manhattan metric distance
| CANBER Canberra metric distance
| CHORD Chord distance
| CHISQR Chi-square distance
| AVERAGE Average distance
| MEAN Mean character difference distance
| GOWER Gower general similarity coefficient
Minimum eigenvalue (default: none)
KAISER Kaiser's rule
| JOLLIFFE Jolliffe's rule
| MINEIGEN=real Specify a minimum eigenvalue
ACCURACY=real Accuracy of solution
Output of graphics
PLOT Text scattergrams
| GPLOT Graphic scattergrams.
PICTURE
Syntax:
PICTURE NOx filename [options]
Description:
The PICTURE command allows you to display Windows Metafiles (.WMF), Windows
bitmap (.BMP) or icon (.ICO) files. The filename extension is used to determine the graphic
type of the file. Up to 5 different pictures can be displayed on the same screen. This
command can be used with the CURRENTCHART option to display a bitmap copy of the
currently active chart. When used with this option, the size of the displayed picture will be
equal to the size of the chart window’s content (see the WINDOW command for instruction
on how to change the size of a chart window). By default, the pictures are displayed in the
middle of the screen. The TOP and LEFT options can also be used to specify the position of
the picture’s upper left corner.
214 - SIMSTAT for WINDOWS
Options:
Examples:
PICTURE NO1 ‘C:\SIMSTAT\SCRIPT\EARTH.BMP’ TOP=10 LEFT=20;
PICTURE NO2 CURRENTCHART TOP=30 LEFT=60;
PICTURE NO1 HIDE;
PLAY
Syntax:
Description:
The PLAY command allows you to play multimedia files such as .WAV sound files, .MDI
music files or .AVI movie files. If no directory is provided, the program successively looks
for the file in the active directory and in the directory where the current script file is located.
When playing an .AVI movie file, the viewer is positioned in the middle of the screen. The
TOP and LEFT options can also be used to specify the position of the window's upper left
corner. The parameter for these two options is an integer value between 0 a 100 expressing
a percentage of the screen height and width.
Options:
Examples:
PLAY C:\WINDOWS\TADA.WAV;
PLAY SONATA.MDI;
PLAY INTRO.AVI TOP=10 LEFT=20;
SCRIPT LANGUAGE REFERENCE - 215
Syntax:
PRINT windowtype [options];
Description:
The PRINT command can be used to send the contents of a window to the printer. By
default, all contents are printed. To restrict the printing to some pages of a notebook or to
a specific number of charts, use the FROM and TO options to specify the lower and upper
limits.
Options:
Window types
DATA Data spreadsheet window
| NOTEBOOK Notebook/Statistical results window
| SCRIPT Script/log window
| CHART Charts window
FROM=integer Start printing at page/chart
TO=integer End printing at page/chart
Examples:
PRINT NOTEBOOK;
PRINT CHART FROM 3 TO 5;
QBOX
Syntax:
QBOX "string" [options];
Description:
The QBOX command allows you to display a single line message or question to the screen.
By default the window is positioned in the middle of the screen. The LEFT and TOP options
can also be used to specify the position of the window. The window stays on screen until a
key is pressed. The DELAY option allows you to insert a minimum delay between the
display of the box and the input of a valid key. The colors of the text appearing in the box
can be altered by specifying a color as an option. The default colors can also be changed by
using the SET COLOR command.
Options:
Color Text color
DELAY=integer Length of delay (msec)
TOP=integer Vertical position of the box’s upper left
corner (0 to 100)
LEFT=integer Horizontal position of the box’s upper
left corner (0 to 100)
BEEP Sounds a beep using computer’s speaker
NOBUTTON Hide the OK button
Valid Colors:
216 - SIMSTAT for WINDOWS
QUESTION...ANSWERS...ENDBOX
Syntax:
Description:
This command displays a dialog box with a multiple choice question. The lines between the
QUESTION and ANSWERS keywords contain the text of the question while the lines
between the ANSWERS and ENDBOX keywords are used to type the available answers.
Each answer should be entered on a separate line. An optional '&' character can be inserted
in the line to specify an accelerator key that, when pressed, will select this item. The
maximum number of items for each question is 30. The answer provided by the user is stored
as a number in a variable specified on the first line of the command. When a data file
variable is specified, the answer is automatically stored in the current record of the data file.
If a numeric value is already stored in variable, it is used as the default answer. The CLEAR
option can be used to automatically erase this value before the dialog box is displayed. If an
answer is required and should not be skipped, use the NOSKIP option to prevent the user
from exiting the dialog box without providing a valid answer.
Options:
color Color of the text
TOP=integer Vertical position of the dialog box’s
upper left corner (0 to 100)
LEFT=integer Horizontal position of the dialog box’s
upper left corner (0 to 100)
BEEP Sounds a beep using computer’s speaker
NOBUTTON Hide the OK button
CLEAR Clear the content of the variable
MOSKIP Prevent exiting the dialog box without
providing a valid answer
SCRIPT LANGUAGE REFERENCE - 217
Example:
QUIT
Syntax:
QUIT
Description:
This command takes you out of the SIMSTAT program. All opened files are closed before
exiting the program.
RANDOM
Syntax:
Description:
The RANDOM command is similar to the BOOTSTRAP2 command but simulates the null
assumption that there is no difference or relation in the population. The program draws
from the sample and for each variable a specified number of random observations with
replacement and computes the estimator for the subsample. The procedure is performed
many times (10 to 30,000 times). The options allow you to display information about the
estimator distribution including descriptive statistics, frequency table, percentile table and
histogram of the estimator distribution. The program also computes nonparametric and bias-
corrected bootstrap confidence intervals and Type I error rate for up to 4 alpha levels. If no
sample size is specified (option SIZE), the bootstrap sample size is automatically adjusted
to the size of the original sample.
218 - SIMSTAT for WINDOWS
Options:
Choice of statistics
TAU-A Kendall's Tau-A
| TAU-B Kendall's Tau-B
| TAU-C Kendall-Stuart's Tau-C
| D-SYM Somers' D symmetric
| D-XDEP Somers' D (X dependent)
| D-YDEP Somers' D (Y dependent)
| GAMMA Gamma
| RHO Spearman's Rho
| R Pearson's r
| SLOPE Regression slope
| INTERCEPT Regression intercept
| S-T Student's T
| S-F Student's F
| M-W Mann-Whitney
| WILCOXON Wilcoxon (W value)
| SIGN Sign test (Z value)
| K-W Kruskal-Wallis
| MEDIAN Median test (Z value)
| AGREE Percentage of agreement
| KAPPA Cohen's kappa
| SCOTT Scott's pi
| NFREE Free marginal (nominal scale)
| KRBAR Krippendorff's r bar
| KR Krippendorff's R
| OFREE Free marginal (ordinal scale)
RANK
Syntax:
RANK varname;
Description:
Replaces the values of the current variable by their rank. If ties occur, the mean rank of the
tied values is used. Missing values are excluded.
Examples:
RANK FINALNOTE;
To store the rank in another variable, use this command in combination with the COMPUTE
command as in the following example:
COMPUTE FINALRANK = FINALNOTE;
RANK FINALRANK;
RECODE
Syntax:
RECODE varname = (value[,value..] = value) [...];
Description:
The RECODE command provides an easy way to make multiple changes to the values of
numeric variables, or to collapse values of a continuous variable into categories. The recode
expression can consist of several transformations enclosed in parentheses, each including
one or more values, or a value range, an equal sign, and the new value. Each value on the
left of the equal sign is recoded into the value on the right. The recoding proceeds from left
to right and stops after a transformation occurs. The SYSMIS and MISSING keywords can
be used to represent missing values, while the ELSE represents all non specified values.
Examples:
RECODE SESTATUS = (1,2 = 1) (3,4,5 = 2) (6..10 = 3) (ELSE = MISSING);
To store the new codes into another variable, use this command in combination with the
COMPUTE command as in the following example:
COMPUTE SESTATCAT = SESTATUT;
RECODE SESTATCAT = (1,2 = 1) (3,4,5 = 2) (6..10 = 3) (ELSE = 4);
220 - SIMSTAT for WINDOWS
RECORD
Syntax:
RECORD [option];
Description:
The RECORD command allows you to move the cursor within the currently opened data file
to make a specific record active. You can also use this command to add a new record at the
bottom of the data file.
Options:
REGRESSION
Syntax:
Description:
The REGRESSION command produces simple regression analysis for each pair of
dependent-independent variables. SIMSTAT lets you choose among linear and 6 types of
nonlinear regression. The output includes the Pearson product-moment correlations, the
intercept and slope of the regression line, and an ANOVA table for the equation. Various
options allow you to obtain a bivariate scatterplot, to select a one- or two-tailed test of
probabilities and to request a standardized residuals caseplot, a scatterplot of predicted
values by standardized residuals or a normal probability plot of residuals.
Options:
Type of regression
LINEAR Linear regression
| QUADRATIC Quadratic regression
| CUBIC Cubic regression
| 4TH 4th degree polynomial
| 5TH 5th degree polynomial
| INV Inverse regression
| LOG Logarithmic regression
| EXP Exponential regression
SCRIPT LANGUAGE REFERENCE - 221
RELIABILITY
Syntax:
RELIABILITY varlist [BY varlist] [/options];
Description:
The RELIABILITY command provides a means to assess the quality of multiple-item
additive scales through the computation of reliability statistics. The options available offer
the possibility to obtain various item statistics, iter-item variance-covariance and correlation
matrices, total scale and item-total statistics. It also allows you to verify the reliability of the
scale through the use of a split-half method or by computing internal consistency measures.
Each selected variable is considered as a single item of the scale. The first and second lists
or variables can be used to specify the division of items in two different subscales to be used
in a split-half method.
Options:
see GOSUB
222 - SIMSTAT for WINDOWS
RUN
Syntax:
Description:
The RUN command runs another Windows or DOS program. If the program is not in the
program directory or in the current script directory, you will need to specify the full path of
the program.
Examples:
RUN SIMCALC.EXE;
RUN C:\WINDOWS\WRITE.EXE MYDOC.WRI;
RUNS
Syntax:
RUNS varlist BY varlist [/options];
Description:
The RUNS test is a procedure to test whether the ordered sequence in which observations
were obtained is random. In order to be performed, such a test requires that all values be
dichotomized into two categories. The options allow you to separate observations into two
distinct groups using the mean, the median or a user-specified value as a cutoff point.
Options:
Type of cuttoff point
MEAN Mean
| MEDIAN Median
| VALUE Value
SAVE
Syntax:
SAVE windowtype;
Description:
This command can be used to store the contents of the notebook, the chart or the script
window on disk. If the contents were created during the current session and have not been
saved on disk before, a dialog box will appear to allow you to specify the name and location
of the new file.
Options:
Window types
NOTEBOOK Notebook/Statistical results window
SCRIPT Script/log window
CHART Charts window
Examples:
SAVE NOTEBOOK;
SAVE CHART;
SCED
Syntax:
Description:
The SCED (single case experimental design) command provides some basic tools to study
the effect of an intervention on the behavior of a single subject. It involves the repeated
objective measurement of the behavior of a single subject (dependent variable) over a long
period of time interspersed with changes in the treatment condition (independent variable).
The procedure will display a graph representing the evolution of the dependent variable (Y)
at various phases defined by the independent (X) variable. The various options allow you to
obtain statistics for each phase of the analysis as well as graphic tools that can be used as
judgemental aids to identify the experimental effect of the intervention (smoothed data,
split-middle trend, control bars).
224 - SIMSTAT for WINDOWS
Options:
Smoothing technique
MAVG (int int ...) Moving average
| RMED (int int ...) Running median
SCREEN
Syntax:
SCREEN color;
Description:
This command allows you to display a background screen on which textual information,
pictures, movies, menus and dialog boxes will be displayed. The color option lets you
specify the background color. To remove the screen background, use the HIDE option.
Option:
Valid Colors:
Examples:
SCREEN NAVY;
SCREEN HIDE;
SCRIPT LANGUAGE REFERENCE - 225
SENSITIVITY
Syntax:
SENSITIVITY varlist BY varlist [/options];
Description:
The SENSITIVITY analysis allows one to assess the ability of a quantitative measure (X)
to differentiate a dichotomous criterion condition (Y) and provide guidelines to choose an
appropriate cutoff point. The program provides, for each value of the quantitative measure,
the level of sensitivity (proportion of positive cases correctly diagnosed as true) and
specificity (proportion of negative cases correctly diagnosed as false), and the percentage of
false-positives and false-negatives. This command also allows you to obtains a ROC
(receiver operating characteristic) curve and an Error rate graph.
Options:
VALUE=real Criterion value
HIGH Scale orientation (ascending)
SSTAT Sensitivity statistics
ESTAT Error rates statistics
ROC Roc curve graph
ERROR Error rates graph
SET
Syntax:
SET [options];
Description:
The SET command can be used to change various global program options such as the
display of the toolbar, the status bar or the help hints. It can also be used to modify options
used when printing notebook pages or charts such as the page header or the number of charts
per page.
The HEADER option is used to specify a line of text that will appear at the top of each
printed analysis result. By default, this command alters the contents of the header printed
at the center of the page. The sections of the header printed to the left or the right edge of
the page remain unchanged. However, you can also modify those sections by using the less
than (<) and the greater than (>) character. All text that appears to the left of the first <
character will be printed on the left margin. Also, all text appearing to the right of the last
> character will be printed flush right. Special codes can be inserted in the header to
display the source data file ($f), the time ($t) and date ($d) when the analysis was done, or
the notebook page number ($p).
226 - SIMSTAT for WINDOWS
The VARSIZE and DECIMALS parameters are used to specify the default physical size and
number of decimal places of newly created variables. It is recommended to set those
parameters before creating a new variable with the COMPUTE command.
The SET command also allows you to run a script in demonstration mode, by using the
SET DEMO=integer;
command where integer stands for the number of milliseconds between dialog boxes. In this
mode, BOX and QBOX no longer stop until the user presses <ENTER> or clicks on the OK
button but will be displayed only for a specified length of time. To disable the DEMO mode,
set the number of milliseconds to zero.
Options:
TOOLBAR ON | OFF Turns the main window's tool bar on/off
STATUS ON | OFF Turns the main window's status bar on/off
HINTS ON | OFF Turns the display of help hints on/off
BEEP ON | OFF Beep on error
SIZE=integer Default physical size of newly created
variables
DECIMAL=integer Default number of decimal places for
newly created variables
HEADER=string Changes the title line on printed output
CHARTSPERPAGE=integer Number of charts per page (1, 2 or 4)
DEMO (integer) Enables/disables demonstration mode (0 to
disable or 1 to 30000 milliseconds)
SIGN
Syntax:
SIGN varlist BY varlist [/options];
Description:
The SIGN test procedure tests the hypothesis that two variables have the same distribution.
This is assessed by comparison of the numbers of positive and negative differences between
values of the two variables. The probability test performed can be either one- or two-tailed.
Options:
1TAIL | 2TAIL Direction of the test
PANEL Display the dialog box
SCRIPT LANGUAGE REFERENCE - 227
SORT
Syntax:
SORT varname or expression;
Description:
This command allows you to arrange cases in numeric or alphabetic order. If only one
variable is specified, the sorting will be done on this variable in ascending order. To sort the
records in descending order or to specify a more complex sort involving several variables,
you need to specify a sort expression. This expression can include almost any supported
xBase function.
Examples:
SORT AGE; Sort on AGE in ascending order
SORT DESCEND(AGE); Sort on AGE in descending order.
SORT SEX*100+AGE; Composite xBase expression that will
first sort the records on sex, and then
on age
STOP
Syntax:
STOP;
Description:
Immediately stops the batch command and returns to the SIMSTAT user interface.
T-TEST
Syntax:
Description:
Options:
TIME-SERIES
Syntax:
Description:
The TIME-SERIES command allows the examination of time series. Available options offer
various transformations to remove trends or seasonal dependence in a series and provide a
diagnostic for those transformations by displaying autocorrelation and partial autocorrelation
function plots of the transformed series. This command also allows the application of two
smoothing methods (i.e., moving average and running median) to identify trends in noisy
time series data. Control bars representing the mean and the confidence limits can also be
displayed over the series.
Options:
Type of smoothing
MAVG (int int...) Moving average
| RMED (int int...) Running median
TITLE
Syntax:
Description:
The TITLE command displays a single line string on the background screen. By default, the
title line is displayed horizontally centered and at the top of the screen with a font size of 24
points. The TOP and LEFT options can also be used to specify the position of the text's
upper left corner. The parameter for these two options is an integer value between 0 to 100
expressing a percentage of the screen height and width. Other options allow you to control
the size, style and color of the displayed text.
Options:
Examples:
Valid Colors:
VARDEF
Syntax:
Description:
The VARDEF command can be used to assign a value description, or define the display
width, number of decimal places, or missing value for one or several variables.
Options:
Examples:
VLABELS
Syntax:
VLABELS varlist /
real = “string”
[real = “string”];
Description:
The VLABELS command can be used to assign alphanumeric strings to values of one or
several numeric variables. When more than one variable is specified, the first variable in
the list will contain the value labels, and all the other variables will be linked to this first
variable.
Example:
WEIGHT
Syntax:
WEIGHT [variable];
Description:
The WEIGHT command allows you to designate a weighting variable. When the command
is used alone, the weighting is turned off.
Example:
WEIGHT GROUPNO; {use values in GROUPNO as weights}
WEIGHT; {turns weighting off}
WILCOXON
Syntax:
Description:
The WILCOXON matched-pairs signed-ranks test is a procedure used to test whether two
related samples have been drawn from the same population. Like the sign test, it computes
the difference between the values of the two variables but takes into account the magnitude
as well as the direction of the differences. The Wilcoxon signed-ranks test is the
nonparametric version of the t-test for paired samples. The probability test performed can
be either one- or two-tailed.
Options:
1TAIL | 2TAIL Direction of the test
PANEL Display the dialog box
WINDOW
Syntax:
WINDOW WindowType [options];
Description:
The WINDOW command provides complete control of the display of any SIMSTAT
window. The various options allow one to control the size and location of each window and
to execute various window related actions (tile, cascade, minimize, etc.). The parameter for
TOP, LEFT, WIDTH, and HEIGHT options is an integer value between 0 and 100
expressing a percentage of the screen height and width.
232 - SIMSTAT for WINDOWS
Options:
Window types
DATA Data spreadsheet window
NOTEBOOK Notebook/Statistical results window
SCRIPT Script/log window
CHART Charts window
ALL All four windows
Title - Enter a name for the program you are adding. This name will appear on the
TOOLS menu. You can add an accelerator to the menu command by preceding that
letter with an ampersand (&).
Program - Enter the location of the program you are adding. You must include the
full path to the program. Click the “...” button to search your drives and directories
to locate the path and file name for the program.
Parameters - Enter parameters to pass to the program at startup. For example, you
might want to pass a file name when the program launches.
ENVIRONMENT PAGE
Show toolbar - This option turns the main window's toolbar at the top of the screen on or
off. Turn off the toolbar to gain free work space.
Show status bar - This option turns the status bar at the bottom of the screen on or off.
You can gain extra free work space by hiding the status bar.
Display hints - This option allows you to toggle the display of Help Hints.
Beep on error - This option allows you to determine whether or not the computer sounds
a beep when an error message appears on the screen.
Show notebook scroll bars - This option allows you to specify whether to display scroll
bars on the notebook. Displaying scroll bars allows you to scroll the output horizontally
or vertically with the mouse.
Hide menu items unrelated to the active window -This option allows you to choose
between two different menu systems: a task specific menu system where only menus
related to the active window are shown, and a comprehensive menu system where all
menus are displayed even if unrelated to the active window. While the task specific
menu system may facilitate the location of a specific command by displaying fewer
menu commands at a time, performing a task related to another window requires you
to first activate this window in order to gain access to the proper menu. For example,
if you are browsing through the notebook and want to filter the data file, you will need
to activate the data window before accessing the DATA menu where the FILTER
command is located. The full menu system allows you to perform any action related to
any of the 4 window types without changing the active window.
Save and restore desktop information - Select this option to keep information about
the sizes and locations of the 4 windows at the moment you leave SIMSTAT. The next
time you run the program, the locations and sizes of the 4 windows will be restored.
Display notebook after analysis - When this option is enabled, the Notebook window
automatically becomes the active window after an analysis command is performed and
its results added to the notebook. (If the Display Graph Window option is enabled (see
below) and new charts are created during the analysis, the chart will become the active
window).
Display graph window on graph creation - When this option is enabled, the Chart
window automatically become the active window after a new chart is created.
Activate script recording on start up - Selecting this option enables the RECORD
script feature. This feature automatically generates script commands for actions
undertaken using pull-down menus and dialog boxes, and appends those commands to
the end of the script window.
DIRECTORIES/BACKUP TAB
Data files directory - By default, when the DATA | OPEN command is activated, the
program looks in the drive and directory from which the program was started. This
option allows you to specify another default drive and/or directory to be used by the
program.
Output files directory - The Output Files directory specifies the name of the directory
where both notebook files and chart files are located. If no directory information is
provided, the dialogs of the OPEN and SAVE AS commands start on the disk and
directory from which SIMSTAT was started.
Script files directory - The Script Files directory specifies the name of the directory
where the Script files are located. If no directory information is provided, the dialogs
of the OPEN and SAVE AS commands start on the disk and directory from which
SIMSTAT was started.
Backup compression factor - This option allows you to set the compression factor to
be used by SIMSTAT when creating archive copies of data files. You can set the
compression factor to a numeric value between 0 and 9. When set to 0, files are simply
stored in the archive. Setting this compression factor to 9 gives the best compression
ratio but is also the slowest compression. The default value is set to 6.
Keep a session backup - When this option is enabled, SIMSTAT automatically creates
a temporary compressed copy of a data file upon its opening. This feature is especially
useful to cancel all data transformation or editing performed during a session and
restore the file as it was when you opened it. It is also possible to refresh this temporary
backup by using the DATA | SESSION BACKUP | REFRESH option. This will ensure
that all modifications to the data file made so far will not be lost if you later decide to
revert to a previous version of the data file. If you quit SIMSTAT or open another file,
this temporary backup file is deleted.
SETTING THE PROGRAM PREFERENCES - 237
PRINTING PAGE
The printing page allows you to set various printing options for both text and graphic outputs.
Header - Use this header option to specify a line of text that will appear at the top of each
analysis when those analyses are sent to the printer. The header is composed of 3
strings. All text that appears in the LEFT box will be printed on the left margin. All
text appearing in the RIGHT box will be printed flush right, while all text entered in
the CENTER will be printed in the center of the page.
Special codes can be inserted in any of these boxes to print specific information:
Code Effect
DATA PAGE
The Data page allows you to specify information regarding the management of data files
(confirmation of operations, etc.)
The Confirmation section provides check boxes to mark the actions you want SIMSTAT to
prompt you to confirm.
Record deletion - Enabling this option causes SIMSTAT to prompt you to confirm the
deletion of a record made with the DELETE RECORD command from the DATA
menu.
Variable deletion - Enabling this option causes SIMSTAT to prompt you to confirm the
deletion of a variable or a variable list specified using the DELETE VARIABLES
command.
Variable transformation - Most commands from the Transformation submenu allow you
to overwrite values of an existing variable. Enabling this option causes SIMSTAT to
prompt you to confirm the overwriting of those values.
Variable creation - Some transformations may require the creation of one or several new
variables. Enabling this option causes SIMSTAT to prompt you to confirm the creation
of new variables.
The current data file format used by SIMSTAT requires you to determine in advance the physical
size of a new variable in the data file. This section allows you to specify the default width and
number of decimal places of new numeric variables created during a transformation or an
analysis.
Width - The width of a numeric variable should be set to the maximum width that a value
can have. The maximum width for the numeric type is 19.
Number of decimals - The number of decimal positions if the field type is numeric. Note
that the length of a numeric field that contains decimals includes the decimal point, a
leading zero, and an optional sign. The minimum length for a numeric field that
contains one decimal position is therefore 3 (unsigned) or 4 (signed). The maximum
number of decimals permitted is 16.
The DATA grid section provides two options that allow you to specify how the datasheet will
display the content of your data file.
Display font - This option allows you to change the font used to display the data in the
data grid. By choosing a different font size, it is possible to increase or decrease the
number of rows and columns displayed on a single screen.
Minimum cell display width - While it is possible to individually adjust the display
width of each variable in a data file, this option allows you to override these values by
setting a minimum display width for the entire data file. This option has been
implemented in order to circumvent a performance problem associated with the grid in
SETTING THE PROGRAM PREFERENCES - 239
the 16 bit version of SIMSTAT. This speed problem occurs when working with large
data files involving several hundred variables. Increasing this value reduces the number
of columns displayed and thus increases the redrawing speed of the grid.
240 - SIMSTAT for WINDOWS
APPENDIX A - XBASE SYNTAX AND FUNCTIONS - 241
NOTE: This appendix was reproduced from the Apollo v2.0 user’s manual with the authorization
of Successware 90. Inc.
String Operators
+ Joins two strings. Trailing spaces in the strings are placed at the end of each
string.
- Joins two strings and removes trailing spaces from the string preceding the
operator and places them at the end of the string following the minus sign
operator.
Numeric Operators
+ Addition
- Subtraction
* Multiplication
/ Division
^ Exponentiation (or **)
Relational Operators
= Equal to
== Exactly equal to
<> Not equal to
# Not equal to
!= Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
$ Is contained in
242 - SIMSTAT for WINDOWS
Evaluation Order
When more than one type of operator appears in an xBase expression, the order of evaluation
is as follows:
Expressions containing more than one operator are evaluated from left to right. Parentheses
are used to change the evaluation order. If parentheses are nested, the innermost set is
evaluated first.
Logical operators are evaluated as .NOT. first, .AND. second, and .OR. last. Logical
evaluation order may also be altered with parentheses. In multiple conditional expressions
that contain the .NOT. operator, always use parentheses to enclose the .NOT. operator with
the expression to which it applies.
APPENDIX A - XBASE SYNTAX AND FUNCTIONS - 243
NOTE: Memo field names are not allowed in SIMSTAT xBase expressions.
ALIAS()
ALLTRIM (String)
Trims both leading and trailing spaces from a string. The string may be derived from
any valid xBase expression.
AT (SearchString, TargetString)
Determine whether a search string is contained within a target. If found, the function
returns the position of the search string within the target string (relative to 1). If not
found, the function returns 0 (zero).
AT("gh", "defghij") returns 4.
CHR (Val)
CTOD (String)
Converts a character string into an xBase date. The string must be formatted according
to the Windows date format settings.
CTOD("12/31/94")
DATE ()
Returns the system date (today). Use DTOC(DATE()) to retrieve today's date
formatted according to the Windows settings.
244 - SIMSTAT for WINDOWS
DAY (DateField)
Returns the day portion of an xBase date as an integer.
DELETED ()
DESCEND (String)
An xBase function that inverts a key value using 2's complement arithmetic. The result of
the operation is the arithmetic inverse of the key value. When inverted keys are sorted in
ascending sequence, the result is in descending order. A filter expression could be
DESCEND(DTOS(billdate)) + CUSTNO
DTOC (DateField)
Converts an xBase date into a character string formatted according to the Windows settings.
For example, if the date format was American and the date field contained March 21, 1995,
DTOC(datefield) would return '03/21/1995'.
DTOS (DateField)
Converts an xBase date into a string formatted according to standard xBase storage
conventions (CCYYMMDD). For example, December 21, 1993 would be returned as
'19931221'. Indexes that contain date elements should use the DTOS() function, which
naturally collates into oldest date first.
EMPTY (Field)
Reports the empty status of any xBase field. Character and date fields are empty if they
consist entirely of spaces. Numeric fields are empty if they evaluate to zero. Logical fields
are empty if they evaluate to False.
Memo fields that contain no reference to a memo block in the associated memo file are
empty.
This is the immediate if function. If the Logical expression is true, return the True result,
otherwise return the False result. The types of the True Result and the False Result must be
the same (i.e., both numeric, or both strings, etc.) The logical expression must of course
evaluate as True or False.
INDEXKEY ()
Returns the leftmost characters of the expression for the defined length.
LEFT("xyzabc", 3) returns 'xyz'.
LEN (Expression)
LOWER (String)
MONTH (DateField)
ORDER ()
ORDKEY ()
Centers the passed string between a number of the passed character to make the string the
specified length.
'[' + PADC("Scott", 9 ,"-") + ']' returns '[--Scott--]'.
246 - SIMSTAT for WINDOWS
Pads the passed string to the specified length with the specified characters. If the string is
longer than the value specified by Length, the string is truncated to this length.
Pads the passed string to the specified length using the specified character. If the string is
longer than the value specified by Length, the string is truncated to this length.
Determine whether a search string is contained within a target, starting from the right side
of the target string. If found, the function returns the position of the search string within the
target string (relative to 1). If not found, the function returns 0 (zero).
RECCOUNT ()
RECNO ()
Returns the rightmost characters of the expression for the defined length.
SELECT ()
Returns the workarea number for the current workarea as a long integer.
SPACE (Length)
APPENDIX A - XBASE SYNTAX AND FUNCTIONS - 247
STOD (String)
Converts a number into a right-justified string with decimal digits following the decimal
point. The total length of the string is defined by the length parameter. STR(RECNO(),
5, 0) is a common indexing element that ensures creation of unique keys if appended to
another field element.
An index key using this expression could be built with NAME + STR(RECNO(),5,0)
If the decimals parameter is omitted, the function defaults to zero decimal places. If the
length parameter is omitted as well, the length of the result is the length of the field.
Converts a number into a, zero-padded right justified string with decimals digits following
the decimal point. The total length of the string is defined by the length parameter.
If the decimals parameter is omitted, the function defaults to zero decimals. If the length
parameter is omitted as well, the length of the result is the length of the field.
Returns a portion of the string expression starting at the defined start location for the defined
length..
TIME ()
Transform converts strings and numeric values into formatted character strings. The
function transforms the result of the first expression in accordance with the second picture
string.
The picture string is made up of two parts. The first part is the Function string and it is
optional for both strings and numeric values (as long as the second Template string is
present).
A character string transformation picture may consist of only a Function string or only a
Template or both.
A numeric picture must contain a Template string; the Function string is optional.
A logical value must contain only a Template string with Template characters L or Y.
The Function string consists of a leading @ character followed by one or more formatting
characters. If the Function string is present, the @ character must be the first character in
the picture string with its formatting characters immediately following and it may not
contain spaces.
If a Template string exists as well, it follows the Function string. A single space separates
the Function string and the Template string.
B left justify;
C display CR after positive numbers;
X display DR after negative numbers;
Z blank a zero value;
( enclose negative numbers in parentheses.
The Template string describes the format on a character by character basis. The Template
string is made up of special characters which have specific results and optional unassigned
characters which either replace characters or are inserted in the formatted string depending
upon the absence or presence of the @R Function string.
APPENDIX A - XBASE SYNTAX AND FUNCTIONS - 249
Example: Where "phone" is a character field holding a phone number with no formatting
characters.
'transform(phone, "@R (###) ###-####")' returns '(909) 699-6776'.
If the formatting characters were actually present in the field, the "@R" function would be
omitted
TRIM (String)
UPPER (String)
Converts the string expression into upper case. Character fields used in index
expressions should always be converted to upper case to insure correct collating
sequence.
VAL (String)
Converts a string of numeric characters into its equivalent numeric value. The
conversion stops at the first non-numeric character encountered (or the end of the
string).
YEAR (DateField)
APPENDIX B - REFERENCES
STATISTICAL TEXTBOOK
AGRESTI, A. & FINLAY, B. (1986). Statistical methods for the social sciences, 2nd.
edition. San Francisco: Dellen-Macmillan.
FERGUSON, G.A. (1989). Statistical analysis in psychology & education, sixth edition.
New York: McGraw-Hill.
TABACHNICK, B.G., & FIDELL (1989). Using multivariate statistics, 2nd. edition. New
York: Harper Collins.
COHEN, J. (1990). Things I have learned (so far). American Psychologist, 45, 1304-1312.
MEASURES OF ASSOCIATION
GIBBONS, J. D. (1993). Nonparametric measures of association. Beverly Hill: Sage
Publication.
HILDEBRAND, D.K., LAING, J.D., & ROSENTHAL, H. (1977). Analysis of ordinal data.
Beverly Hill: Sage Publication.
REYNOLDS, H.T. (1977). Analysis of nominal data. Beverly Hill: Sage Publication.
NONPARAMETRIC STATISTICS
CONOVER, W.J (1980). Practical nonparametric statistics 2nd. Ed. New York: John Wiley
& Sons.
SIEGEL, S (1956). Nonparametric statistics for the behavioral sciences. New York:
McGraw-Hill.
SCOTT, W.A. (1955). Reliability of content analysis: The case of nominal scale coding.
Public Opinion Quarterly, 19, 321-325.
MULTIPLE REGRESSION
DARLINGTON, R.B. (1968). Multiple regression in psychological research and practice.
Psychological Bulletin, 69, 161-182.
COHEN, J. & COHEN, P. (1983). Applied Multiple Regression/Correlation analysis for the
Behavioral Sciences. 2nd Ed. Hillsdale, N.J.: Lawrence Earlbaum.
DRAPER, N.R. & SMITH, H. (1981). Applied Regression Analysis. 2nd Edition. New
York: John Wiley & Sons.
PEDHAZUR, E.J (1982). Multiple Regression in Behavioral Research, 2nd Edition. New
York: Holt, Rinehart and Winston.
252 - SIMSTAT for WINDOWS
COHEN, J. & COHEN, P. (1983). Applied Multiple Regression/Correlation analysis for the
Behavioral Sciences. 2nd Ed. Hillsdale, N.J.: Lawrence Earlbaum.
IVERSEN, G.R., & NORPOTH, H. (1976). Analysis of Variance. Beverly Hill: Sage
Publication.
PEDHAZUR, E.J (1982). Multiple Regression in Behavioral Research, 2nd Edition. New
York: Holt, Rinehart and Winston.
OVERALL, J.E., & SPIEGEL, D.K. (1969). Concerning least squares analysis of
experimental data. Psychological Bulletin, 72, 311-322.
ITEM ANALYSIS
CROCKER, L., & ALGINA, J. (1986). Introduction to classical & modern test theory. Fort
Worth: Harcourt Brace Jovanovich College Publishers.
HENRYSSEN, S. (1971). Gathering, analyzing and using data on test items. In R.L.
Thorndike (Ed.). Educational measurement (2nd Edition). Washington, D.C.:
American Council on Education.
STREINER, D.L., & NORMAN, G.R. (1989). Health measurement scales: A practical
guide to their development and use. Oxford University Press.
MICHAEL, J. (1974). Statistical inference for individual organism research: Mixed blessing
or curse? Journal of Applied Behavior Analysis, 7, 647-653.
RELIABILITY ANALYSIS
CARMINES, E.G., & ZELLER, R.A. (1979). Reliability and validity assessment. Beverly
Hill: Sage Publication.
BOOTSTRAP SIMULATION
DIACONIS, P., & EFRON, S. (1983, May). Computer intensive methods in statistics.
Scientific American, 116-130.
EFRON, B., & GONG, G. (1983). A leisurely look at the bootstrap, the jackknife and
cross-validation. American Statistician, 37, 36-48.
EFRON, B., & TIBSHIRANI, R.J. (1993). An introduction to the bootstrap. New York:
Chapman & Hall.
APPENDIX C - LIMITATIONS
Maximum number of variables 1022