Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributions for ALM #13

Open
config-i1 opened this issue Aug 6, 2018 · 25 comments
Open

Distributions for ALM #13

config-i1 opened this issue Aug 6, 2018 · 25 comments
Labels
enhancement New feature or request

Comments

@config-i1
Copy link
Owner

  1. Normal distribution,
  2. F-distribution,
  3. Weird one with the ratio of folded normal distributions,
@config-i1 config-i1 added the enhancement New feature or request label Aug 6, 2018
@config-i1
Copy link
Owner Author

  1. Non-central Chi-Squared distribution

@config-i1
Copy link
Owner Author

  1. Log-normal distribution

config-i1 pushed a commit that referenced this issue Aug 8, 2018
2. rmc, stepwise, lmCombine and lmDynamic now use alm().
@config-i1
Copy link
Owner Author

(1) and (5) are done.

@config-i1
Copy link
Owner Author

(2) is too difficult to estimate. So probably leave it for a while...

@config-i1
Copy link
Owner Author

(2) is not doable, because it's not possible to parametrise it using mean and sd. So tough luck...

@config-i1
Copy link
Owner Author

Logit and probit are now implemented in alm() as well

@config-i1
Copy link
Owner Author

Just for fun:
6. Log Laplace,
7. Log Logistic,
8. Log S,
9. Asymmetric Laplace,
10. Student,

And even more:
11. Poisson,
12. Negative binomial,

@config-i1
Copy link
Owner Author

(11) and (12) are done in 2e1a8d8

@config-i1
Copy link
Owner Author

(4) is done in db86e01

config-i1 pushed a commit that referenced this issue Oct 2, 2018
config-i1 pushed a commit that referenced this issue Oct 3, 2018
@config-i1
Copy link
Owner Author

(9) is done in 1d22422

@config-i1
Copy link
Owner Author

  1. Beta distribution with potential restrictions on a or b. This might be useful for the rmc() with Beta for pAIC weights.

@config-i1
Copy link
Owner Author

  1. Beta distribution with potential restrictions on a or b. This might be useful for the rmc() with Beta for pAIC weights.

The more reasonable thing to do is to construct two regressions: for a and for b - and then estimate the parameters via the maximisation of the likelihood.

config-i1 pushed a commit that referenced this issue Oct 31, 2018
@config-i1
Copy link
Owner Author

Beta is done, but not yet sure how to use it in rmc...

@config-i1
Copy link
Owner Author

  1. Generalised normal distribution:
    https://en.wikipedia.org/wiki/Generalized_normal_distribution
  2. Box-Cox / power normal distribution (as a more general than lognormal)

@config-i1
Copy link
Owner Author

config-i1 commented Oct 27, 2019

Summarising the progress so far, the following are not yet implemented, but could be potentially useful:
6. Log Laplace,
7. Log Logistic,
8. Log S,
14. Generalised normal distribution: https://en.wikipedia.org/wiki/Generalized_normal_distribution

Also makes sense to think about:
15. Inverse Gaussian
16. Gamma distribution,
17. Erlang distribution,
18. Exponential distribution.

@config-i1
Copy link
Owner Author

Stuff left since 27th October 2019:
7. Log Logistic,
14. Generalised normal distribution: https://en.wikipedia.org/wiki/Generalized_normal_distribution
16. Gamma distribution,
17. Erlang distribution,
18. Exponential distribution.

@config-i1
Copy link
Owner Author

  1. Do specifically Exponential power distribution, which is more general than Normal, Laplace and S. Estimate shape parameter using ML.

@config-i1
Copy link
Owner Author

(14) is done in 0.6.1.41008

@config-i1
Copy link
Owner Author

  1. Logit-normal distribution: logit(x)~N(mu, sigma^2)

@config-i1
Copy link
Owner Author

(19) is done in cedbd5b

@Steviey
Copy link

Steviey commented Dec 28, 2020

R 4.x, greybox 0.6.4
Hi!
is there already any gamma, weibull dist. available in greybox::alm(), or something similar?

@config-i1
Copy link
Owner Author

Not yet. The closest thing to that is Inverse Gaussian.
The full list of supported distributions is provided here: https://cran.r-project.org/web/packages/greybox/vignettes/alm.html

If you need them, I'll add them to the to do list.

@Steviey
Copy link

Steviey commented Dec 28, 2020

Oh, that would be wonderful Ivan, Thank you so much!

config-i1 pushed a commit that referenced this issue Jan 8, 2021
@config-i1
Copy link
Owner Author

Gamma distribution is now available in 16eb934 Please, note that the implemented model is similar to the one discussed for the Inverse Gaussian: https://cran.r-project.org/web/packages/greybox/vignettes/alm.html#invgauss - it might not be the classical Gamma you expect. The vignette has been updated to explain the details.
Weibull is more challenging, so it won't be implemented any time soon. Sorry.

@Steviey
Copy link

Steviey commented Jan 12, 2021

Thank you Ivan, very nice! Will be dgamma available in other models too (sometimes)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants