predict.samLL: Prediction function for S3 class '"samLL"'

View source: R/samLL.R

predict.samLLR Documentation

Prediction function for S3 class "samLL"

Description

Predict class probabilities and labels for test data.

Usage

## S3 method for class 'samLL'
predict(object, newdata, thol = 0.5, ...)

Arguments

object

An object with S3 class "samLL".

newdata

Numeric test matrix with n rows and d columns.

thol

Decision-value threshold used to convert probabilities to labels. The default value is 0.5.

...

Additional arguments passed to methods; currently unused.

Details

The test matrix is rescaled using the training X.min/X.ran, truncated to [0, 1], and expanded with the same spline basis used during training.

Value

probs

Estimated posterior probabilities as an n by length(lambda) matrix.

labels

Predicted class labels (0/1) as an n by length(lambda) matrix.

See Also

samLL


SAM documentation built on Feb. 19, 2026, 5:06 p.m.