158
T
T
I
I
P
P
S
S
&
&
T
T
R
R
I
I
C
C
K
K
S
S
-
-
I
I
N
N
F
F
E
E
R
R
E
E
N
N
C
C
E
E
Importing from a frequency table
The import (
) facility of the Inference aplet has a small weakness in that
it can’t import from paired columns defining a frequency table.
For example, suppose we use columns
C1
and
C2
to define a frequency table, ensuring that it
is registered in the
SYMB
view as shown right.
If you now change to the
NUM
SETUP
view of
the Inference aplet and try to use the import
facility you will find that you can import the
mean and standard deviation from either
column
C1
or
C2
but not from both at once.
What’s needed, of course, is a way to expand
the paired frequency table columns into a
single column listing all values. The program shown below will do this for
you. It is set up to take a frequency table defined in columns
C8
and
C9
and
convert them into a single column stored in column
C0
. The program uses
columns 8, 9 & 10 because there is seldom data in them.
To create it, go to the
Program
Catalog
view and press the
key.
Enter any name you want, such as ‘CCreate’. Now type in the code below.
We’ll now use this program to expand the
frequency table I built earlier. The first thing
we need to do is to move columns
C1
and
C2
to
C8
and
C9
. Rather than re-typing, this can
be done in the
HOME
view as shown.