d_to_gamma {RprobitB}R 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))

[Package RprobitB version 1.1.4 Index]