linkinv | R Documentation |
linkinv_cat3logit
and linkinv_ord3logit
compute the matrix
P\in[0,\,1]^{n\times 3} of probability distributions of the
dependent variable for categorical and ordinal models respectively.
Functions X2P_cat3logit
and X2P_ord3logit
perform the same computation,
except that the design matrix X\in\textbf{R}^{n\times k} and
the coefficient matrix B\in\textbf{R}^{k\times 2} are taken as
separate input arguments. linkinv
and X2P
apply the proper function
according to the type of model passed to argument model
.
linkinv(XB, model) X2P(X, B, model) linkinv_cat3logit(XB) X2P_cat3logit(X, B) linkinv_ord3logit(XB, alpha) X2P_ord3logit(X, B, alpha)
XB |
object of class |
model |
object of class |
X |
object of class |
B |
object of class |
alpha |
|
Numeric matrix [0,\,1]^{n\times 3} of probability distributions.
linkfun
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.