Dear Stata community,
I’ve been using a mata function (ghk2) to compute joint probabilities.
And following a post (https://www.statalist.org/forums/for...rtain-outcomes) I was wondering if there was a way to include a mata function in margins ? so that the code may look like :
margins, expression(exp(predict(lnl))/ghk2(P, Xl, Xu, V, anti, start)) force
Thanks for reading !
I’ve been using a mata function (ghk2) to compute joint probabilities.
And following a post (https://www.statalist.org/forums/for...rtain-outcomes) I was wondering if there was a way to include a mata function in margins ? so that the code may look like :
margins, expression(exp(predict(lnl))/ghk2(P, Xl, Xu, V, anti, start)) force
Thanks for reading !