ordinal_to_cutpoints {Surrogate}R Documentation

Convert Ordinal Observations to Latent Cutpoints

Description

ordinal_to_cutpoints() converts the ordinal endpoints to the corresponding cutpoints of the underlying latent continuous variable. Let P(x \le k) = G(c_k) where G is the distribution function of the latent variable. ordinal_to_cutpoints() converts x to c_k (or to c_{k - 1}) if strict = TRUE.

Usage

ordinal_to_cutpoints(x, cutpoints, strict)

Arguments

x

Integer vector with values in 1:(length(cutpoints) + 1).

cutpoints

The cutpoints on the latent scale corresponding to \boldsymbol{c} = c(c_1, \cdots, c_{K - 1}).

strict

(boolean) See function description.

Value

Numeric vector with cutpoints corresponding to the values in x.


[Package Surrogate version 3.4.1 Index]