# Alternative to multivariatestats.jl

**URL:** <https://discourse.julialang.org/t/alternative-to-multivariatestats-jl/110540>\
**Category:** General Usage\
**Tags:** question, package, linearalgebra\
**Created:** [February 21, 2024, 8:37pm UTC](https://discourse.julialang.org/t/alternative-to-multivariatestats-jl/110540 "2024-02-21T20:37:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jcbritobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jcbritobr/32/219275_2.png) [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Post date:** [February 22, 2024, 7:21pm UTC](https://discourse.julialang.org/t/alternative-to-multivariatestats-jl/110540/5 "2024-02-22T19:21:03Z")

</div>

Thats very nice. Thank you. In fact, linear discriminant model from multivariatestats.jl is the only model I’m having troubles. It seems abandoned in repository. Will be nice to check this alternatives. I will reimplement the examples using this package.

@matnbo did you know if this is the correct behavior from multivariatestats.jl?

> [@LDA example in multivariatestats.jl flipped x and y values](https://discourse.julialang.org/t/lda-example-in-multivariatestats-jl-flipped-x-and-y-values/110508):
>
> Hello, good morning. Days ago I started looking the multivariatestats.jl to do some pca and lda analysis, and notice that lda plots data inverted in this example: [https://juliastats.org/MultivariateStats.jl/stable/lda/](https://juliastats.org/MultivariateStats.jl/stable/lda/) iris = dataset("datasets", "iris") X = Matrix(iris[1:2:end,1:4])' X\_labels = Vector(iris[1:2:end,5]) pca = fit(PCA, X; maxoutdim=2) Ypca = predict(pca, X) lda = fit(MulticlassLDA, X, X\_labels; outdim=2) Ylda = predict(lda, X) p = plot(layout=(1,2), size=(800,300))…

---

_[View the full topic](https://discourse.julialang.org/t/alternative-to-multivariatestats-jl/110540)._
