This is a simple Mata function written together with my PhD mate Giuseppe Ilardi. It is exactly the Mata equivalent of the R function rtnorm() allowing random generation for the truncated Normal distribution with mean equal to m and standard deviation equal to s (before truncation), and truncated on the interval [lower, upper]. DOWNLOAD



Print Friendly, PDF & Email