Recover MLE fit parameters in vector form

Albert_Zevelev
Thu, 08 Oct 2020 06:46:22 +0000
Statistics

Suppose I fit some data

using Distributions, Random;
DGP_True = LogNormal(0,1);
Random.seed!(123);
const d_train = rand(DGP_True, 1_000);
D1=Distributions.fit_mle(LogNormal, d_train)

#Gives a fit distribution
julia> D1
LogNormal{Float64}(μ=0.03421345999528483, σ=0.9966633047846717)

Question: how can I recover the fit parameters from D1 in vector form?
ie: [μ=0.03421345999528483, σ=0.9966633047846717]
or: ie: [0.03421345999528483, 0.9966633047846717]

5 posts - 3 participants