Predict method for a fusedanova object

Description

Produce a prediction for a vector of lambda parameter and an array of class.

Usage

1
\S4method{predict}{fusedanova}(object, y= NULL, lambda=NULL, labels = FALSE)

Arguments

object

an object of class fusedanova.

y

a vector of class. By default, NULL. If NULL, all classes are predicted.

lambda

a numeric vector giving the list of lambda for which to predict. By default, NULL. If NULL, it is set to the lambdalist slot of object. If this slot is empty, lambda is set to the fusion times detected in the fusedanova function.

labels

logical. Kepp the labels or not.

See Also

fusedanova.

Examples

1
2
3
data(aves)
fa <- fusedanova(x=aves$weight, class=aves$family, weight="laplace", gamma=5)
predict(fa, labels=aves$order)