partition {Rfwdmv}R Documentation

Interactive Group Assignment

Description

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.

Usage

partition(x, group = "next") 

Arguments

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.

Value

an fwdmv object with the groups element and the unassigned element updated according to the description.

Author(s)

Kjell Konis

References

Atkinson, A. C., Riani, M. and Cerioli, A. (2004) Exploring Multivariate Data with the Forward Search. Springer-Verlag New York.

See Also

fwdmv.object, fwdmv, fwdmvPartitionPlot

Examples

# data(fondi.dat)
# fondi.init <- fwdmv.init(fondi.dat)
# p1 <- partition(fondi.init)

# draw a line segment intersecting several trajectories #
# and view the allocation #

[Package Rfwdmv version 0.72-2 Index]