d_to_gamma: Transform threshold increments to thresholds

View source: R/RcppExports.R

d_to_gammaR Documentation

Transform threshold increments to thresholds

Description

This helper function transforms the threshold increments d to the thresholds gamma.

Usage

d_to_gamma(d)

Arguments

d

A numeric vector of threshold increments.

Details

The threshold vector gamma is computed from the threshold increments d as c(-100,0,cumsum(exp(d)),100), where the bounds -100 and 100 exist for numerical reasons and the first threshold is fixed to 0 for identification.

Value

A numeric vector of the thresholds.

Examples

d_to_gamma(c(0,0,0))

RprobitB documentation built on May 29, 2024, 7:59 a.m.