powered by
mlogit transforms from probability simplex S^J to R^(J-1) inv.mlogit transforms from R^(J-1) to probability simplex S^J
mlogit(p)inv.mlogit(x)
inv.mlogit(x)
A J-dimensional numeric vector in the probabiity simplex
A (J-1)-dimensional numeric vector
A numeric vector
# NOT RUN { x <- c(1,1,1,1) p <- inv.mlogit(x) x2 <- mlogit(p) # }
Run the code above in your browser using DataLab