Invoke SuperGEM(tm) 1.0 dialog window from S command line:
supgem (x, y=x[,ncol(x)], lx=rep(1,ncol(x)), nbump=10, header=date(),
nl=2*nrow(x)/3, wt=rep(1,nrow(x)), alpha=0.1, xmiss=9.0e30, nbin=5,
iseed=987654321, ibu=1, icr=3, mtf=10, beta0=0.001, thr=1.0e-4,
sumfile="rules.sum")
Required argument:
x = input variable data matrix.
Optional arguments:
y = vector of output values.
lx = vector of input variable flags:
| 0 => ignore x[,j],
lx[j] = | 1 => x[,j] = real (orderable) variable,
| 2 => x[,j] = categorical (unorderable) variable.
nbump = number of bumps [Friedman and Fisher (1997), Section 13].
header = "header character string for output"
nl = number of observations in learning data set.
nl=nrow(x) => test data = training data.
wt = vector of weights for observations.
alpha = peeling parameter [Friedman and Fisher (1997), Sections 7.1 & 8.2].
xmiss = missing value flag.
Must be larger than any data value on any input variable.
nbin = number of bins for real variable frequency ratio plots ["relfreq"].
iseed = seed for internal random number generator.
ibu = 0/1 => no/yes bottom-up pasting [Friedman and Fisher, Section 7.2].
icr = flag for peeling criterion [Friedman and Fisher (1997), Section 14].
| 1 => subbox criterion,
icr = | 2 => input variable criterion,
| 3 => both.
mtf = minimum number of peeled observations.
beta0 = minimum support for any box.
thr = additional stopping criterion:
var[y | x in box] / var[y] < thr => stop peeling.
sumfile = "name" of file for rule summary printout.
Examples:
supgem(xdata)
supgem(xdata,ydata)
supgem(products,profits,c(1,1,2,1,2,0,0,1),header="output = profit margin")
Remarks:
This is the S command that opens the interactive SuperGEM dialog window
and initiates the analysis. The analysis consists of a dialog in which
answers are provided to queries (prompts) in the SuperGEM window. The
answers are based on information displayed in that window, and the results
of commands executed at the S command prompt (>) in the S command window.
The appropriate S command is indicated with the SuperGEM prompt. Enter
gemhelp("cmd") in the S command window, where cmd is the command
indicated at the SuperGEM prompt, for information.
Note that with S, and older versions of Splus, a graphics device window must
be opened before any of the SuperGEM diagnostic plots can be made.