delta: Difference operator.

Description Usage Arguments Details Value

View source: R/delta.R

Description

This function computes the difference operator matrix for computing utility differences.

Usage

1
delta(J, i)

Arguments

J

The total number of alternatives.

i

The alternative number to which respect utility differences are computed.

Details

Given a J x P matrix X of choice characteristics, then delta(i,J)%*%X computes differences with respect to alternative i.

Value

A matrix of dimension J-1 x J.


RprobitB documentation built on Nov. 12, 2021, 5:08 p.m.