update_U: Update utility vector

View source: R/RcppExports.R

update_UR Documentation

Update utility vector

Description

Update utility vector

Usage

update_U(U, y, sys, Sigma_inv)

Arguments

U

[numeric(J - 1)]
The current utility vector.

y

[integer(1)]
The index of the chosen alternative, from 1 to J.

sys

[numeric(J - 1)]
The systematic utility.

Sigma_inv

[matrix(J - 1, J - 1)]
The inverted error covariance matrix.

Value

An update for (a single) U.

Examples

U <- sys <- c(0, 0, 0)
Sigma_inv <- diag(3)
lapply(1:4, function(y) update_U(U, y, sys, Sigma_inv))


RprobitB documentation built on Aug. 26, 2025, 1:08 a.m.