Learn R Programming

squant (version 1.1.7)

predict.squant: SQUANT prediction

Description

predict assigns subgroup for each individual in a new dataset.

Usage

# S3 method for squant
predict(object, data, ...)

Value

A data frame with the predicted subgroup in the last column.

Arguments

object

The squant object, the signature of which will be applied to the specified data. The output of squant function.

data

The data frame for prediction.

...

Ignored.

Details

This function assigns subgroup for each individual in a new dataset based on the derived signature contained within the squant object.