Learn R Programming

plot3logit (version 3.1.4)

linkfun: Compute the linear predictors implied by trinomial probability distributions

Description

Given the probability distributions \(P\in[0,\,1]^{n\times 3}\) of the dependent variable, it computes the the values of linear predictors \(XB\in\textbf{R}^{n\times 2}\) according to notation used in santi2019;textualplot3logit.

Usage

linkfun(P, model)

linkfun_cat3logit(P)

linkfun_ord3logit(P, alpha)

Value

Numeric matrix \(\textbf{R}^{n\times 2}\) of linear predictors.

Arguments

P

object of class matrix (or other coercible classes) such that \(P\in[0,\,1]^{n\times 3}\).

model

object of class field3logit.

alpha

numeric vector of length two where constants \(\alpha^{(1)}\) and \(\alpha^{(2)}\) are stored (only for ordinal models), as defined in Equation (7) of santi2019;textualplot3logit.

References

See Also

linkinv.