Learn R Programming

LMest (version 2.4.5)

prob_multilogit: Compute multinomial probabilities

Description

The function computes multinomial probabilities (internal function).

Usage

prob_multilogit(Xdis, be, label, fort = TRUE,der = FALSE)

Arguments

Xdis

array of all covariates (two- or three-dimensional)

be

initial value of the parameter vector

label

label associated to every covariate configuration

fort

to use fortran routines when possible

der

to compute derivatives

Value

P

estimated matrix of probabilities

Pdis

estimated matrix of distinct probabilities

dP

derivatives of the estimated matrix of probabilities

dPdis

derivatives of the estimated matrix of distinct probabilities