126 Alphabetical Listing
nSolve()
Catalog >
Note: See also cSolve(), cZeros(), solve(),
and zeros().
O
OneVar
Catalog >
OneVar [1,]X[,[Freq][,Category,Include]]
OneVar [n,]X1,X2[X3[,…[,X20]]]
Calculates 1-variable statistics on up to 20
lists. A summary of results is stored in the
stat.results variable. (See page 172.)
All the lists must have equal dimension
except for Include.
Freq is an optional list of frequency values.
Each element in Freq specifies the
frequency of occurrence for each
corresponding X and Y data point. The
default value is 1. All elements must be
integers ≥ 0.
Category is a list of numeric category codes
for the corresponding X values.
Include is a list of one or more of the
category codes. Only those data items
whose category code is included in this list
are included in the calculation.
An empty (void) element in any of the lists
X, Freq, or Category results in a void for
the corresponding element of all those lists.
An empty element in any of the lists X1
through X20 results in a void for the
corresponding element of all those lists. For
more information on empty elements, see
page 232.
Output variable Description
stat.v Mean of x values
stat.Σx
Sum of x values
stat.Σx
2
Sum of x
2
values