fwdmvRandomStart {Rfwdmv} | R Documentation |
Produces a forward plot of the trajectories of the minimum distance outside the subset for several multivariate forward searches. Peaked trajectories are often indicative of clusters in the data. The identify function can be used to highlight these trajectories in the plot and to obtain one or more starting subsets that are quite likely to reveal group structure in the data.
fwdmvRandomStart(X, n.starts = 50, scaled = TRUE, plot.it = TRUE)
X |
a matrix or data frame containing the data. |
n.starts |
a positive integer specifying the number of random starting subsets. |
scaled |
a logical flag. If TRUE scaled mahalanobis distances are used. |
plot.it |
a logical flag. If TRUE the minimum distance outside the subset trajectories are plotted. |
It is necessary to store the object returned by this function in order to use the identify function. Additionally, the plot method can be used to redraw the plot.
A list with class fwdmvRandomStart
containing the following components:
starts |
a numeric matrix whose rows contain the randomly selected starting subsets. |
mpomat |
a numeric matrix where each column contains the minimum distance outside the subset trajectory for a particular multivariate forward search. |
plot.domain |
a numeric vector containing the subset sizes used during the forward search. |
fwdmv
,
identify.fwdmvRandomStart
,
plot.fwdmvRandomStart
data(bank.dat) bank.rfs <- fwdmvRandomStart(bank.dat) # use identify and plot on bank.rfs #