IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
90 stars 41 forks source link

Logistic distribution - Gamma & Inv Gamma #345

Closed beremtz closed 1 year ago

beremtz commented 1 year ago

I am trying to update an old code (from 2015) that used

logdist.gamma & logdist.invgamma

If I do: logdist.gamma(0.7,0.3) I got: Unable to resolve the name logdist.gamma.

similar for logdist.invgamma

Has the syntax changed? Any alternative to work around this?

jaromir-benes commented 1 year ago

Hi - its' distribution.Gamma.fromMeanStd(mean, std). Best, J

On Mon, Oct 17, 2022 at 10:29 AM beremtz @.***> wrote:

I am trying to update an old code (from 2015) that used

logdist.gamma & logdist.invgamma

If I do: logdist.gamma(0.7,0.3) I got: Unable to resolve the name logdist.gamma.

similar for logdist.invgamma

Has the syntax changed? Any alternative to work around this?

— Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKQNKZEYYT4ELOATB6LWDUL7HANCNFSM6AAAAAARG33VNU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Lch1710 commented 1 month ago

logdist.gamma=distribution.Gamma.fromMeanStd(mean, std), how about logdist.invgamma?

jaromir-benes commented 1 month ago

Hi

Note please first that the name should be distribution.Gamma (logdist is just a legacy name, slightly confusing, kept for backward compatibility)...

For inverse gamma, it's distribution.InvGamma (the names of objects in Matlab are capitalized or, in general, PascalCased...).

Best Jaromir

On Tue, May 21, 2024 at 10:42 AM Lch1710 @.***> wrote:

logdist.gamma=distribution.Gamma.fromMeanStd(mean, std), how about logdist.invgamma?

— Reply to this email directly, view it on GitHub https://github.com/IRIS-Solutions-Team/IRIS-Toolbox/issues/345#issuecomment-2121784755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCVKKXMRTOV5BLUH6PZNTLZDLNEJAVCNFSM6AAAAAARG33VNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRG44DINZVGU . You are receiving this because you commented.Message ID: @.***>