Cognitive measurement models are estimated on a link scale that keeps
parameters unconstrained — a memory precision is sampled as
log(kappa), a mixture weight as logit(theta) — while readers
interpret them on the natural scale. inverse_link() is the
back-transform, applied by recover() to estimates, interval bounds
and generating values alike so that both sides of a recovery
comparison are on the same scale.
Details
The vocabulary and the closed forms are taken from bmm's internal
link_transform() (bmm/R/helpers-parameters.R), so the two cannot
disagree about what a link name means. bmmtools ships its own copy
because link_transform() is not exported.
Values outside a link's natural domain are transformed as R computes
them rather than being replaced by NA: inverse_link(0, "inverse")
is Inf and inverse_link(-2, "sqrt") is 4. In a scoring pipeline
a visible Inf is safer than a silent NA, which would be absorbed
by a metric's missing-data guard and reported as a smaller sample
rather than as a problem.
