| predict.scr_align | R Documentation |
Apply an alignment to raw scores
## S3 method for class 'scr_align'
predict(object, raw, type = c("score", "prob"), ...)
object |
An object from |
raw |
Raw scores on the same scale used in the fit. |
type |
|
... |
Ignored. |
A numeric vector of the length of raw.
Other production:
scr_apply(),
scr_export(),
scr_monitor(),
scr_monitoring_plan(),
scr_reasons(),
scr_sql()
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.