The RESAMPLING STATS Language at Exeter Software The
RESAMPLING STATS Language
color=#663333>BASIC COMMANDS:
ADD {adds the elements of two vectors together}
CONCAT {combines two vectors into one long one}
COPY {records data or copies vectors}
COUNT {determines the frequency of a particular number or range of numbers}
DEDUP {eliminates duplicate values}
DIVIDE {divides the contents of one vector by another}
END {ends a loop, sends you back to a "REPEAT" statement}
GENERATE {produces the desired quantity of random numbers within the desired
range}
HISTOGRAM {produces a histogram of trial results}
IF {succeeding commands execute only when IF condition holds}
MEAN {calculates the mean of a vector}
MULTIPLES {determines the frequency of multiplicates of a number}
MULTIPLY {multiplies the elements in one vector by those in another}
PERCENTILE {calculates the xth percentile of a frequency distribution}
PRINT {specifies output to be shown on screen}
REMARK {precede remarks with an apostrophe '}
REPEAT {allows user to repeat simulation up to 15,000 times}
RUNS {calculates the number of runs of a given length}
SAMPLE {samples with replacement}
SCORE {allows user to keep track of the result of each simulation}
SHUFFLE {randomizes the elements in a vector}
SORT {sorts the elements in a vector}
SUBTRACT {subtracts the elements in one vector from those in another}
SUM {adds together the elements of a vector}
TAGSORT {creates a vector of sorted positions, allowing you to sort multiple
vectors according to the order of a "key" vector}
TAKE {takes a specified number of elements from a vector and creates a new
vector}
WEED {removes specified numbers or a specified range}
color=#663333>ADDITIONAL MATHEMATICAL AND STATISTICAL
COMMANDS:
ABS {finds absolute value of each element in a vector}
BOXPLOT {produces a boxplot}
CORR {calculates correlation coefficient}
EXP {raises "e" to the power of each vector element}
EXPONENTIAL {generates numbers from an exponential distribution}
LOG {takes the log of elements in a vector}
MAX {identifies the maximum value in a vector}
MEDIAN {calculates the median of a vector}
MIN {identifies the minimum value in a vector}
MODE {identifies the most frequent value in a vector}
NORMAL {generates numbers from a normal distribution}
POWER {raises each element in first vector to the power of the corresponding
element in the second}
REGRESS {does multiple linear regression}
ROUND {rounds each element to an integer}
SQRT {determines the square root of each element in a vector}
SQUARE {squares each element in a vector}
STDEV {finds the standard deviation of each element in a vector}
SUMABSDEV {sums the absolute deviations of one vector from another}
SUMSQRDEV {sums the squared deviations of one vector from another}
TIMEPLOT {plots a vector sequentially along x-axis}
UNIFORM {randomly produces real values from a uniform distribution}
VARIANCE {finds the variance of the elements in a vector}
color=#663333>ADDITIONAL RESAMPLING & HOUSEKEEPING
COMMANDS:
CLEAR {erases contents of a vector}
PAUSE {causes program execution to pause}
READ {imports data from an ASCII file}
RECODE {changes certain elements of a vector to specified value}
SEED {sets the random number generator seed}
SET {fills a vector with one value}
SIZE {determines the size of a vector}
WHILE {conditional repeat}
WRITE {exports data to an ASCII file}