Description Usage Arguments Value Examples
mlogit transforms from probability simplex S^J to R^(J-1) inv.mlogit transforms from R^(J-1) to probability simplex S^J
1 2 3 | mlogit(p)
inv.mlogit(x)
|
p |
A J-dimensional numeric vector in the probabiity simplex |
x |
A (J-1)-dimensional numeric vector |
A numeric vector
1 2 3 | x <- c(1,1,1,1)
p <- inv.mlogit(x)
x2 <- mlogit(p)
|
Loading required package: mvtnorm
Loading required package: numDeriv
Loading required package: Rcpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.