ordinal_to_cutpoints: Convert Ordinal Observations to Latent Cutpoints

View source: R/copula_utils.R

ordinal_to_cutpointsR 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.


Surrogate documentation built on April 11, 2025, 6:09 p.m.