Learn R Programming

bayesm (version 3.1-6)

mnlHess: Computes --Expected Hessian for Multinomial Logit

Description

mnlHess computes expected Hessian (\(E[H]\)) for Multinomial Logit Model.

Usage

mnlHess(beta, y, X)

Value

\(k x k\) matrix

Arguments

beta

\(k x 1\) vector of coefficients

y

\(n x 1\) vector of choices, (\(1,\ldots,p\))

X

\(n*p x k\) Design matrix

Warning

This routine is a utility routine that does not check the input arguments for proper dimensions and type.

Author

Peter Rossi, Anderson School, UCLA, perossichi@gmail.com.

Details

See llmnl for information on structure of X array. Use createX to make X.

References

For further discussion, see Chapter 3, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.

See Also

llmnl, createX, rmnlIndepMetrop

Examples

Run this code
if (FALSE) mnlHess(beta, y, X)

Run the code above in your browser using DataLab