predict.scr_align: Apply an alignment to raw scores

predict.scr_alignR Documentation

Apply an alignment to raw scores

Description

Apply an alignment to raw scores

Usage

## S3 method for class 'scr_align'
predict(object, raw, type = c("score", "prob"), ...)

Arguments

object

An object from scr_align().

raw

Raw scores on the same scale used in the fit.

type

"score" (default) returns points; "prob" returns the calibrated event probability implied by the alignment.

...

Ignored.

Value

A numeric vector of the length of raw.

See Also

Other production: scr_apply(), scr_export(), scr_monitor(), scr_monitoring_plan(), scr_reasons(), scr_sql()

Examples

set.seed(3)
y   <- stats::rbinom(2000, 1, 0.15)
raw <- stats::qlogis(0.15) + 1.3 * y + stats::rnorm(2000)
al  <- scr_align(raw, y)
head(predict(al, raw))
head(predict(al, raw, type = "prob"))

scorecraft documentation built on Dec. 6, 2026, 1:09 a.m.