I have some changes ready to commit that will implement qnorm() and the log-gamma function, lgamma(). I consider these two functions to be a relatively high priority in this wishlist, because they will enable a lot more custom-written likelihood functions to be written as mxAlgebras.
I can probably churn out trunc() and round() soon, too.
Comments
#1
I have some changes ready to commit that will implement
qnorm()
and the log-gamma function,lgamma()
. I consider these two functions to be a relatively high priority in this wishlist, because they will enable a lot more custom-written likelihood functions to be written as mxAlgebras.I can probably churn out
trunc()
andround()
soon, too.#2
Also, note that we already have
pnorm()
. It's calledomxMnor()
.#3
I agree with your prioritization. Is your qnorm mxAlgebra also multivariate?
The mnemonic for omxMnor is Multivariate NORmal integration.
#4
Nope, it's univariate only. Quantiles from multivariate distributions are not necessarily unique. For instance, load the mvtnorm package and try
You'll see that (0,1) and (1,0) could both be considered the 0.468743 quantile of this distribution.
#5
Of course! I believe I was thinking of dnorm. But we already have that as the fitfunction of a Normal Expectation.