predict.ty_link: Projected summative score (the prior) from interims

View source: R/link.R

predict.ty_linkR Documentation

Description

Conditional distribution of the summative true score given a student's observed interims and their SEs. Missing interims simply drop out, so late enrollers get wider priors rather than wrong ones.

Usage

## S3 method for class 'ty_link'
predict(object, newdata, suffix = "", ...)

Arguments

object

A 'ty_link'.

newdata

Data frame with the interim columns and their SEs.

suffix

Optional suffix of alternative interim columns (e.g. '"_r2"' for a replicate set); SEs are still read from the '_se' columns.

...

Unused.

Value

Data frame: 'mean', 'sd', 'n_interims'.

Examples

sim <- ty_simulate(n_calibration = 300, n_operational = 300, seed = 1)
link <- ty_link(sim)
op <- sim[sim$cohort == "operational", ]
prior <- predict(link, op)
# late enrollers get wider priors
aggregate(prior$sd, list(late = op$late), mean)

throughyear documentation built on Oct. 8, 2026, 5:07 p.m.