ty_link: Link interims to the summative scale

View source: R/link.R

ty_linkR Documentation

Description

Latent-variable linking. The true scores on all occasions (interims on their own reporting scales, and the summative) are jointly multivariate normal, 'tau ~ MVN(mu, Sigma)'. Each observed score equals its true score plus error with the reported (known) SE, and any score may be missing. 'mu' and 'Sigma' are estimated by EM from all students; only the calibration cohort needs summative scores. Because measurement error is modeled rather than ignored, the regression of summative on interims is not attenuated, and a student's projection carries their own interim precision forward.

Usage

ty_link(
  data,
  interims = attr(data, "interims"),
  summative = "S",
  se_suffix = "_se",
  max_iter = 1000,
  tol = 1e-06
)

Arguments

data

Data frame with interim scores, the summative score, and their SEs.

interims

Interim score columns, in time order.

summative

Summative score column (NA for students without one yet).

se_suffix

Suffix of the SE columns.

max_iter, tol

EM controls; 'tol' is relative to the largest parameter in 'Sigma', so it does not depend on the reporting scales.

Value

A 'ty_link' object with 'mu', 'Sigma', 'vars', 'summative', 'converged', 'iterations' (EM step evaluations), 'loglik'.

Examples

sim <- ty_simulate(n_calibration = 300, n_operational = 300, seed = 1)
link <- ty_link(sim)
link

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