partition {Rfwdmv} | R Documentation |
This function produces a plot of the Mahalanobis distances versus subset size similar to that produced by fwdmvDistancePlot
. The function then waits for the user to draw a line segment on the plot (which is done with two consecutive mouse clicks). The units whose trajectories cross this line segment are assigned to the group specified by the group
argument.
partition(x, group = "next")
x |
an fwdmv object. |
group |
an integer value specifying which group the units corresponding to the selected trajectories should be assigned. Possible values are 1 to n.groups + 1 where n.groups is the number of groups in the fwdmv object. The default "next" is to assign units to a new group. |
an fwdmv
object with the groups
element and the unassigned
element updated according to the description.
Kjell Konis
Atkinson, A. C., Riani, M. and Cerioli, A. (2004) Exploring Multivariate Data with the Forward Search. Springer-Verlag New York.
fwdmv.object
, fwdmv
, fwdmvPartitionPlot
# data(fondi.dat) # fondi.init <- fwdmv.init(fondi.dat) # p1 <- partition(fondi.init) # draw a line segment intersecting several trajectories # # and view the allocation #