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

View source: R/samEL.R

predict.samELR Documentation

Prediction function for S3 class "samEL"

Description

Predict expected counts for test data.

Usage

## S3 method for class 'samEL'
predict(object, newdata, ...)

Arguments

object

An object with S3 class "samEL".

newdata

Numeric test matrix with n rows and d columns.

...

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

expectations

Estimated expected counts as an n by length(lambda) matrix.

expectation

Alias of expectations kept for backward compatibility.

See Also

samEL


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