Statistics101/Resampling
Stats Commands 

COMMAND 
DESCRIPTION 
ABS 
Computes
the absolute value of each element of the input vector. 
ACOS 
Computes
the arc cosine of each element of its input vector. 
ADD 
Arithmetically
adds corresponding elements of its input vectors. 
ASIN 
Computes
the arc sine of each element of its input vector. 
ARGCOUNT 
Returns
the number of arguments that its enclosing subroutine had when invoked. 
ATAN 
Computes
the arc tangent of each element of its input vector. 
BINOMIALPROB 
Computes
the probability of k successes in n trials given a probability of success. 
BOXPLOT 
Outputs
a boxplot of one or more input vectors to the
output window. 
BREAK 
Immediately
exits the innermost enclosing REPEAT or WHILE loop. 
BUBBLEGRAPH 
Creates
a bubble graph of its input vectors in a new graphic window tab. 
CHISQUARE 
Computes
the chisquare statistic from its two input vectors. 
CLEAN 
Removes
“missing data” (NaN) from one or more vectors. 
CLEAR 
Removes
all the elements from one or more vectors. 
CLEAROUTPUT 
Clears
the contents of the Output Window. 
CLOSETABS 
Closes
all graph tabs. 
COMBINATIONS 
Computes
the number of combinations of n items taken k at a time . 
CONCAT 
Concatenates
arguments into a single vector (Same as COPY). 
CONST 
Assigns
a list of numbers to a series of names. The names can then be used in place
of the numbers. 
COPY 
Concatenates
arguments into a single vector. 
CORR 
Computes
Pearson's product moment correlation coefficient of two vectors. 
COS 
Computes
the cosine of each element of its input vector 
COUNT 
Counts
the number of elements that pass a specified test 
DATA 
Concatenates
arguments into a single vector (Same as COPY). 
DEBUG 
Causes
Statistics101 to enter Debug Mode. 
DECLARE 
Declares the
argument list of a subroutine so the subroutine may be invoked in the text of
a program prior to its actual definition. 
DEDUP 
Removes
duplicate elements from its input vector. 
DIVIDE 
Arithmetically
divides corresponding elements of its input vectors. 
ENUM 
Creates
a set of enumerators, i.e., named constants whose names have no associated
numerical value. 
EXEC 
Submits
a command string to the underlying operating system (e.g., Windows, MacOS, Linux) to be executed in a separate process. 
ELSE 
Marks
the beginning of a set of commands to be executed if an IF command's logical
expression evaluates to false and all ELSEIF commands likewise fail. 
ELSEIF 
Marks
the beginning of a set of commands to be executed if the logical expression
of its associated IF command and all preceding associated ELSEIF commands
evaluate to false. 
END 
Marks
the end of an IF, REPEAT, WHILE, or NEWCMD command block. 
EXEC 
Submits
a command string to be executed by the underlying operating system (Windows,
Mac, Linux). 
EXP 
Computes
the number e (i.e., 2.71828...)
raised to the power of each element of the input vector. 
EXPONENTIAL 
Randomly
selects a specified number of values from a specified exponential
distribution. 
FOREACH 
Executes
commands between FOREACH and END assigning each element of a given vector one
by one to a specified variable. 
FRACTION 
Copies the
fractional part of each element of its inputVector
into its result vector. 
FUZZ 
Sets
a range of validity for value comparisons during tests. 
GENERATE 
Randomly
selects a specified number of elements from a vector, with replacement (Same
as SAMPLE). 
GETARG 
Copies
the specified optional argument into the result variable. 
GETFILEPATH 
Retrieves
the path information for the file accessed by the most recent READ or WRITE
command. 
GLOBAL 
Declares
that the names in its argument list are to be visible within subroutines. 
HISTOGRAM 
Creates
a histogram of one or more vectors in a new graphic window tab. 
HISTOGRAMDATA 
Computes
a histogram from its input vector and puts the results in the remaining
vectors. Does not make a plot or graph. 
HISTOGRAMPLOT 
Prints
a text histogram of one or more vectors to the output window. 
IF 
Allows
execution of commands between IF and END if a specified logical expression
evaluates to true. 
INCLUDE 
This
command replaces itself with the contents of the file(s) in its argument
list. 
INPUT 
Prompts
the user for input and accepts user's input. 
INTEGER 
Converts
all elements of its input vector to integer by truncation, floor, ceiling, or
rounding, depending on the keyword. Default is truncation. 
LET 
Uses
mathematical formula notation to compute a value and assign it to a variable.
Allows use of many Statistics101 math command names as unary functions. 
LOG 
Computes
the natural logarithm of each element of its input vector. 
LOG10 
Computes
the base 10 logarithm of each element of its input vector. 
LOGNORMAL 
Randomly
selects a specified number of numbers from a specified lognormal
distribution. 
MAX 
Finds
the largest value (most positive) in its input vector. 
MAXSIZE 
Not
implemented. Was in original Resampling Stats because of limitations of its
memory model. This command is not needed in Statistics101. 
MEAN 
Computes
the mean of a vector. 
MEDIAN 
Computes
the median of a vector. 
MIN 
Finds
the smallest (most negative) value in its input vector. 
MODE 
Finds
the most frequently occurring value in its input vector. 
MULTIPLES 
Computes
the number of “multiples” whose sizes satisfy the specified test. 
MULTIPLY 
Arithmetically
multiplies corresponding elements of its input vectors. 
NAME 
Creates
one or more Named Constants. 
NEWARRAY 
Creates
an array with the given name and dimensions. 
NEWCMD 
Declares
a new userdefined command (subroutine). 
NORMAL 
Randomly
selects a specified number of numbers from a specified normal distribution. 
NORMALPROB 
Calculates
the cumulative normal distribution. Given x or z computes p. 
NORMALPROBINV 
Calculates
the inverse cumulative normal distribution. Given p computes z or x. 
NUMBERS 
Concatenates
arguments into a single vector (Same as COPY). 
OUTPUT 
Writes
a string and any number of optional numbers to the Output Window or to a specified
file. 
PARETO 
Randomly
selects a specified number of numbers from the specified Pareto distribution. 
PAUSE 
Stops
program execution until the user clicks on the Continue button. 
PERCENTILE 
Computes
specified percentiles from an input vector. 
PERMUTATIONS 
Computes
the number of permutations of n items taken k at a time. 
POISSON 
Randomly
selects a specified number of numbers from a specified Poisson distribution. 
POWER 
Raises
each element in the first input vector to the power of the corresponding
element in the second input vector. 
PRINT 
Prints
the name and contents of one or more vectors to the output window, one vector
to a line, or as a table, one vector to a column.. 
PRODUCT 
Computes
the product of all the elements of its input vector. 
PROGINFO 
Prints
program variables, constants, and status information to the output window. 
PUT 
Inserts
values from input vector into the result vector at locations specified by a
positions vector. 
RANDOM 
Randomly
selects a specified number of elements from a vector, with replacement (Same
as SAMPLE). 
RANKS 
Creates
a list of the ranks of the elements of its input vector. 
READ 
Reads
a file into one or more result variables (vectors). 
RECODE 
Replaces
with a specified number, any element of the input vector that satisfies a
specified test. 
REGRESS 
Computes
the coefficients of the linear regression equation determined by its
dependent vector and its independent vector(s). 
REMAINDER 
Divides
the corresponding elements of the two input vectors and puts the remainder in
the result vector. 
REMOVE 
Copies
all but the specified elements of its input dataVector
into its result vector. 
REPEAT 
Executes
commands between REPEAT and END a specified number of times. 
ROTATE 
Rotates
the elements of the input vector right or left by the specified number of
places. 
ROUND 
Rounds
each element of its input vector to an integer. 
RUNS 
Computes
the number of runs (consecutive equal numbers) whose lengths satisfy the
specified test. 
SAMPLE 
Randomly
selects a specified number of elements from a vector, with replacement. 
SCALARIZE 
Computes
a single number by concatenating all the elements of its input vector. 
SCATTERGRAPH 
Displays
a linear or log scattergraph of its input vectors
in a graphical tab in the Stastistics101 Output window 
SCORE 
Accumulates
the results of random trials in a scoring vector. 
SEED 
Sets
the seed used by the random number generator and/or selects the algorithm
that generates the pseudorandom numbers. 
SET 
Creates
a vector with a specified number of elements all of the same value as the
input number (Can be replaced by COPY N#val ). 
SHIFT 
Shifts
the elements of the input vector right or left by the specified number of
places. Shifts in fillNumber or zeros to the
positions freed by the shift. 
SHUFFLE 
Randomly
reorders the elements of a vector. 
SIGN 
Substitutes
a 1 for negative elements, a +1 for positive elements (including 0) into the
result vector. 
SIN 
Computes
the sine of each element of its input vector. 
SIZE 
Counts
the number of elements contained by the input vector. 
SORT 
Sorts
the elements of the input vector in ascending or descending order. 
SQRT 
Computes
the square root of each element of the input vector. 
SQUARE 
Computes
the square of each element of the input vector. 
STRING 
Concatenates
string literals, string variables and/or vector variables into one string
variable 
STRING_COMPARE 
Compares
two strings, returning zero if they are equal, a negative number if the first
is less than the second, a positive number if the first is greater than the
second. 
STRING_REPLACE 
Returns
a new string resulting from replacing all occurrences [or the first] of a
regular expression match in the input string with a given replacement string. 
STDEV 
Computes
the standard deviation of a vector. 
SUBTRACT 
Arithmetically
subtracts corresponding elements of its input vectors. 
SUM 
Computes
the sum of all the elements of its input vector. 
SUMABSDEV 
Computes
the sum of the absolute differences between its two input vectors. 
SUMSQRDEV 
Computes
the sum of the squared deviations of its first input vector's elements versus
its second vector's elements. 
TAGS 
Computes
a list of the positions of the elements of the input vector that pass a test. 
TAGSORT 
Computes
a list whose element values, in order, are the positions of the elements of
its input vector as if it were sorted in ascending or descending order. 
TAN 
Computes
the tangent of each element of its input vector. 
TAKE 
Copies
specified elements from its input vector into its result vector. 
TIME 
Reads
the system clock and puts the time, in milliseconds, into its result vector. 
TIMEPLOT 
Prints
a timeplot of its input vector on the Statistics101
Output Window. 
UNIFORM 
Selects
a specified number of values randomly from the uniform distribution with the
specified lower and upper limits. 
UNTIL 
Executes
commands between UNTIL and END until the specified logical expression
evaluates to true. 
URN 
Concatenates
arguments into a single vector (Same as COPY). 
VARIANCE 
Computes
the variance of a vector. 
WEED 
Discards
those values from its input vector that satisfy the specified test. 
WEIBULL 
Randomly
selects a specified number of numbers from the specified Weibull
distribution. 
WHILE 
Executes
commands between WHILE and END as long as the specified logical expression
evaluates to true. 
WRITE 
Writes
its input vector(s) into a file or to the Statistics101 output window
according to optional format specifications. 
XYGRAPH 
Displays
an XY linear or log graph of its input vectors in a graphical tab in the Stastistics101
Output window 
XYPLOT 
Prints
an XY linear or log plot of its input vectors to the Statistics101 Output
Window. 

