Appendix: Command Summary


Statistics101/Resampling Stats Command Summary

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.

ARGCOUNT

Computes the number of arguments that a subroutine was invoked with.

ASIN

Computes the arc sine of each element of its input vector.

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

Forces immediate exit from the innermost enclosing REPEAT or WHILE loop.

CHISQUARE

Computes the chi-square 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 in the lower panel of the main window.

COMBINATIONS

Computes the number of combinations of n items taken k at a time.

CONCAT

Concatenates arguments into a single vector (Same as COPY).

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).

DATE

Stores the current date and time in a string variable.

DEBUG

Causes the program to stop executing at this point and enter the debugger.

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.

ELSE

Marks the beginning of a set of commands to be executed if the logical expressions of all other branches of an IF command fail.

ELSEIF

Marks the beginning of a alternative branch of an IF command, with its own logical expression, controlling its own set of commands.

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).

EXIT

Quits the currently running user program.

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.

FFT

Computes the Fast Fourier Transform of its inputs in rectangular coordinate form.

FOREACH

Executes commands between FOREACH and END assigning each element of the given vector one by one to element.

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 textplot histogram of one or more vectors in the Output Window.

IF

Allows execution of commands between IF and the next branch (ELSE, ELSEIF, or END) of the IF command 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.

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 command" or 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

Prints a string and any number of optional numbers to the Output Window.

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.

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 the 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.

ROUND

Rounds each element of its input vector to an integer.

ROTATE

Rotates the elements of the input vector right or left by the specified number of places.

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 pseudo-random 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 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. Zero becomes +1 unless SIGNUM keyword is present.

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.

STDEV

Computes the standard deviation of a 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.

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 order.

TAKE

Copies specified elements from its input vector into its result vector.

TAN

Computes the tangent of each element of its input 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 test passes.

WRITE

Writes its input vector(s) into a file or the Output Window according to optional format specifications.

XYGRAPH

Displays an X-Y linear or log graph of its input vectors in a graphical tab in the Stastistics101 Output Window. Allows both line and scattergraphs on same graph.

XYPLOT

Prints an X-Y linear or log text plot of its input vectors to the Statistics101 Output Window.