# Rs Dmnorm equivalent in Julia

**URL:** https://discourse.julialang.org/t/rs-dmnorm-equivalent-in-julia/68773
**Category:** Machine Learning
**Tags:** question
**Created:** [September 26, 2021, 8:35am UTC](https://discourse.julialang.org/t/rs-dmnorm-equivalent-in-julia/68773 "2021-09-26T08:35:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![djholiver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djholiver/32/50470_2.png) [@djholiver](https://discourse.julialang.org/u/djholiver)
#### Post date: [September 26, 2021, 8:35am UTC](https://discourse.julialang.org/t/rs-dmnorm-equivalent-in-julia/68773/1 "2021-09-26T08:35:02Z")

</div>

Hi,

I am very new to statistical computing but have a need to convert an R script to Julia to mitigate high memory usage and performance challenges. I have been able to clean up quite a bit so far but the below is a sticking point (until the next one…)

There is a call to dmnorm in the script which doesn’t appear to have a direct Julia translation (dnorm is found in [Distributions.jl](https://juliastats.org/Distributions.jl/v0.14/starting.html) as dnorm(x, mu, sig) = pdf(Normal(mu, sig), x)) but there is no [dmnorm](https://www.rdocumentation.org/packages/mnormt/versions/1.4-7/topics/dmnorm) equivalent that I’ve found.

Would anyone have suggestions? I’m hoping I’m missing a package reference as writing my own would be too risky on this (translation of the R would be a possibility if I knew R well enough).

Regards

---

<div class="post-metadata">

### Author: ![learned\_fool](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/learned_fool/32/21934_2.png) [@learned\_fool](https://discourse.julialang.org/u/learned_fool)
#### Post date: [September 26, 2021, 8:54am UTC](https://discourse.julialang.org/t/rs-dmnorm-equivalent-in-julia/68773/2 "2021-09-26T08:54:37Z")

</div>

Hi, you might be looking for MvNormal in Distributions.jl. Please find them [here](https://juliastats.org/Distributions.jl/stable/multivariate/#Distributions)

---

<div class="post-metadata">

### Author: ![djholiver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djholiver/32/50470_2.png) [@djholiver](https://discourse.julialang.org/u/djholiver)
#### Post date: [September 26, 2021, 11:08am UTC](https://discourse.julialang.org/t/rs-dmnorm-equivalent-in-julia/68773/3 "2021-09-26T11:08:08Z")

</div>

Hi - thanks for the response I’ll give it a go

Regards
