<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2019 at 8:01 AM Shaami <<a href="mailto:nzshaam@gmail.com">nzshaam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">  Environment pkg = Environment::namespace_env("mvtnorm");<br><div>  Function dmvnorm = pkg["mvtnorm"];</div></div></blockquote><div><br></div><div>There is no mvtnorm function in the mvtnorm package. You probably want to dmvnorm function instead.</div><div><br></div><div>BTW, the mvtnorm package provides a C API for the dmvnorm function, c.f. <a href="https://stackoverflow.com/a/51294364/8416610">https://stackoverflow.com/a/51294364/8416610</a></div><div><br></div><div>cheerio</div><div>ralf<br></div></div></div>