Lists distr6 distributions in a data.table or a character vector, can be filtered by traits, implemented package, and tags.

listDistributions(simplify = FALSE, filter = NULL)

Arguments

simplify

logical. If FALSE (default) returns distributions with traits as a data.table, otherwise returns distribution names as characters.

filter

list to filter distributions by. See examples.

Value

Either a list of characters (if simplify is TRUE) or a data.table of SDistributions and their traits.

See also

Examples

listDistributions()
#>       ShortName               ClassName    Type ValueSupport  VariateForm
#>          <char>                  <char>  <char>       <char>       <char>
#>  1:         Arc                 Arcsine       ℝ   continuous   univariate
#>  2:     Arrdist                 Arrdist     ℝ^K     discrete   univariate
#>  3:        Bern               Bernoulli      ℕ0     discrete   univariate
#>  4:        Beta                    Beta      ℝ+   continuous   univariate
#>  5:      BetaNC          BetaNoncentral      ℝ+   continuous   univariate
#>  6:       Binom                Binomial      ℕ0     discrete   univariate
#>  7:         Cat             Categorical       V     discrete   univariate
#>  8:      Cauchy                  Cauchy       ℝ   continuous   univariate
#>  9:       ChiSq              ChiSquared      ℝ+   continuous   univariate
#> 10:     ChiSqNC    ChiSquaredNoncentral      ℝ+   continuous   univariate
#> 11:       Degen              Degenerate       ℝ     discrete   univariate
#> 12:        Diri               Dirichlet [0,1]^K   continuous multivariate
#> 13:       DUnif         DiscreteUniform       ℤ     discrete   univariate
#> 14:         Emp               Empirical       ℝ     discrete   univariate
#> 15:       EmpMV             EmpiricalMV       ℝ     discrete multivariate
#> 16:      Erlang                  Erlang      ℝ+   continuous   univariate
#> 17:         Exp             Exponential      ℝ+   continuous   univariate
#> 18:           F           FDistribution      ℝ+   continuous   univariate
#> 19:         FNC FDistributionNoncentral      ℝ+   continuous   univariate
#> 20:        Frec                 Frechet       ℝ   continuous   univariate
#> 21:       Gamma                   Gamma      ℝ+   continuous   univariate
#> 22:        Geom               Geometric      ℕ0     discrete   univariate
#> 23:        Gomp                Gompertz      ℝ+   continuous   univariate
#> 24:        Gumb                  Gumbel      ℝ+   continuous   univariate
#> 25:       Hyper          Hypergeometric      ℕ0     discrete   univariate
#> 26:    InvGamma            InverseGamma      ℝ+   continuous   univariate
#> 27:         Lap                 Laplace       ℝ   continuous   univariate
#> 28:         Log             Logarithmic      ℕ0     discrete   univariate
#> 29:       Logis                Logistic       ℝ   continuous   univariate
#> 30:      LLogis             Loglogistic      ℝ+   continuous   univariate
#> 31:       Lnorm               Lognormal      ℝ+   continuous   univariate
#> 32:     Matdist                 Matdist     ℝ^K     discrete   univariate
#> 33:    Multinom             Multinomial    ℕ0^K     discrete multivariate
#> 34:   MultiNorm      MultivariateNormal     ℝ^K   continuous multivariate
#> 35:      NBinom        NegativeBinomial      ℕ0     discrete   univariate
#> 36:        Norm                  Normal       ℝ   continuous   univariate
#> 37:        Pare                  Pareto      ℝ+   continuous   univariate
#> 38:        Pois                 Poisson      ℕ0     discrete   univariate
#> 39:        Rayl                Rayleigh      ℝ+   continuous   univariate
#> 40: ShiftLLogis      ShiftedLoglogistic      ℝ+   continuous   univariate
#> 41:           T                StudentT       ℝ   continuous   univariate
#> 42:         TNC      StudentTNoncentral       ℝ   continuous   univariate
#> 43:         Tri              Triangular       ℝ   continuous   univariate
#> 44:        Unif                 Uniform       ℝ   continuous   univariate
#> 45:        Wald                    Wald      ℝ+   continuous   univariate
#> 46:     Weibull                 Weibull      ℝ+   continuous   univariate
#> 47:  WeightDisc        WeightedDiscrete       ℝ     discrete   univariate
#>       ShortName               ClassName    Type ValueSupport  VariateForm
#>        Package     Tags                  Alias
#>         <char>   <char>                 <char>
#>  1:          -   limits                     AS
#>  2:          -                              AD
#>  3:      stats                               B
#>  4:      stats                              BT
#>  5:      stats                            BTNC
#>  6:      stats   limits                BM, Bin
#>  7:          -                               C
#>  8:      stats locscale                     CH
#>  9:      stats                    CSQ, CHI, C2
#> 10:      stats              CSQNC, CHINC, C2NC
#> 11:          -   limits DGN, Deg, Delta, Dirac
#> 12: extraDistr                             DRC
#> 13: extraDistr   limits                     DU
#> 14:          -                               E
#> 15:          -                             EMV
#> 16:      stats                              ER
#> 17:      stats    scale                     EX
#> 18:      stats                              FD
#> 19:      stats                            FDNC
#> 20: extraDistr locscale                     FR
#> 21:      stats                          G, Gam
#> 22:      stats                         GM, Geo
#> 23:          -                        GPZ, Gom
#> 24: extraDistr locscale                GB, Gum
#> 25:      stats   limits                    HGM
#> 26: extraDistr                      IG, InvGam
#> 27: extraDistr locscale                     LP
#> 28: extraDistr                               L
#> 29:      stats locscale                     LG
#> 30:     actuar                         LL, LLG
#> 31:      stats                              LN
#> 32:          -                              MD
#> 33: extraDistr   limits                     MN
#> 34:          - locscale                    MVN
#> 35:          -   limits                     NB
#> 36:      stats locscale                      N
#> 37: extraDistr                         PR, Par
#> 38:      stats                    P, Poi, Pois
#> 39: extraDistr    scale                RY, Ray
#> 40:          -                             SLL
#> 41:      stats                              ST
#> 42:      stats                            STNC
#> 43: extraDistr   limits                     TR
#> 44:      stats   limits                 U, Uni
#> 45: extraDistr                               W
#> 46:      stats                        WB, Weib
#> 47:          -                              WD
#>        Package     Tags                  Alias

# Filter list
listDistributions(filter = list(VariateForm = "univariate"))
#>       ShortName               ClassName   Type ValueSupport VariateForm
#>          <char>                  <char> <char>       <char>      <char>
#>  1:         Arc                 Arcsine      ℝ   continuous  univariate
#>  2:     Arrdist                 Arrdist    ℝ^K     discrete  univariate
#>  3:        Bern               Bernoulli     ℕ0     discrete  univariate
#>  4:        Beta                    Beta     ℝ+   continuous  univariate
#>  5:      BetaNC          BetaNoncentral     ℝ+   continuous  univariate
#>  6:       Binom                Binomial     ℕ0     discrete  univariate
#>  7:         Cat             Categorical      V     discrete  univariate
#>  8:      Cauchy                  Cauchy      ℝ   continuous  univariate
#>  9:       ChiSq              ChiSquared     ℝ+   continuous  univariate
#> 10:     ChiSqNC    ChiSquaredNoncentral     ℝ+   continuous  univariate
#> 11:       Degen              Degenerate      ℝ     discrete  univariate
#> 12:       DUnif         DiscreteUniform      ℤ     discrete  univariate
#> 13:         Emp               Empirical      ℝ     discrete  univariate
#> 14:      Erlang                  Erlang     ℝ+   continuous  univariate
#> 15:         Exp             Exponential     ℝ+   continuous  univariate
#> 16:           F           FDistribution     ℝ+   continuous  univariate
#> 17:         FNC FDistributionNoncentral     ℝ+   continuous  univariate
#> 18:        Frec                 Frechet      ℝ   continuous  univariate
#> 19:       Gamma                   Gamma     ℝ+   continuous  univariate
#> 20:        Geom               Geometric     ℕ0     discrete  univariate
#> 21:        Gomp                Gompertz     ℝ+   continuous  univariate
#> 22:        Gumb                  Gumbel     ℝ+   continuous  univariate
#> 23:       Hyper          Hypergeometric     ℕ0     discrete  univariate
#> 24:    InvGamma            InverseGamma     ℝ+   continuous  univariate
#> 25:         Lap                 Laplace      ℝ   continuous  univariate
#> 26:         Log             Logarithmic     ℕ0     discrete  univariate
#> 27:       Logis                Logistic      ℝ   continuous  univariate
#> 28:      LLogis             Loglogistic     ℝ+   continuous  univariate
#> 29:       Lnorm               Lognormal     ℝ+   continuous  univariate
#> 30:     Matdist                 Matdist    ℝ^K     discrete  univariate
#> 31:      NBinom        NegativeBinomial     ℕ0     discrete  univariate
#> 32:        Norm                  Normal      ℝ   continuous  univariate
#> 33:        Pare                  Pareto     ℝ+   continuous  univariate
#> 34:        Pois                 Poisson     ℕ0     discrete  univariate
#> 35:        Rayl                Rayleigh     ℝ+   continuous  univariate
#> 36: ShiftLLogis      ShiftedLoglogistic     ℝ+   continuous  univariate
#> 37:           T                StudentT      ℝ   continuous  univariate
#> 38:         TNC      StudentTNoncentral      ℝ   continuous  univariate
#> 39:         Tri              Triangular      ℝ   continuous  univariate
#> 40:        Unif                 Uniform      ℝ   continuous  univariate
#> 41:        Wald                    Wald     ℝ+   continuous  univariate
#> 42:     Weibull                 Weibull     ℝ+   continuous  univariate
#> 43:  WeightDisc        WeightedDiscrete      ℝ     discrete  univariate
#>       ShortName               ClassName   Type ValueSupport VariateForm
#>        Package     Tags                  Alias
#>         <char>   <char>                 <char>
#>  1:          -   limits                     AS
#>  2:          -                              AD
#>  3:      stats                               B
#>  4:      stats                              BT
#>  5:      stats                            BTNC
#>  6:      stats   limits                BM, Bin
#>  7:          -                               C
#>  8:      stats locscale                     CH
#>  9:      stats                    CSQ, CHI, C2
#> 10:      stats              CSQNC, CHINC, C2NC
#> 11:          -   limits DGN, Deg, Delta, Dirac
#> 12: extraDistr   limits                     DU
#> 13:          -                               E
#> 14:      stats                              ER
#> 15:      stats    scale                     EX
#> 16:      stats                              FD
#> 17:      stats                            FDNC
#> 18: extraDistr locscale                     FR
#> 19:      stats                          G, Gam
#> 20:      stats                         GM, Geo
#> 21:          -                        GPZ, Gom
#> 22: extraDistr locscale                GB, Gum
#> 23:      stats   limits                    HGM
#> 24: extraDistr                      IG, InvGam
#> 25: extraDistr locscale                     LP
#> 26: extraDistr                               L
#> 27:      stats locscale                     LG
#> 28:     actuar                         LL, LLG
#> 29:      stats                              LN
#> 30:          -                              MD
#> 31:          -   limits                     NB
#> 32:      stats locscale                      N
#> 33: extraDistr                         PR, Par
#> 34:      stats                    P, Poi, Pois
#> 35: extraDistr    scale                RY, Ray
#> 36:          -                             SLL
#> 37:      stats                              ST
#> 38:      stats                            STNC
#> 39: extraDistr   limits                     TR
#> 40:      stats   limits                 U, Uni
#> 41: extraDistr                               W
#> 42:      stats                        WB, Weib
#> 43:          -                              WD
#>        Package     Tags                  Alias

# Filter is case-insensitive
listDistributions(filter = list(VaLuESupport = "discrete"))
#>      ShortName        ClassName   Type ValueSupport  VariateForm    Package
#>         <char>           <char> <char>       <char>       <char>     <char>
#>  1:    Arrdist          Arrdist    ℝ^K     discrete   univariate          -
#>  2:       Bern        Bernoulli     ℕ0     discrete   univariate      stats
#>  3:      Binom         Binomial     ℕ0     discrete   univariate      stats
#>  4:        Cat      Categorical      V     discrete   univariate          -
#>  5:      Degen       Degenerate      ℝ     discrete   univariate          -
#>  6:      DUnif  DiscreteUniform      ℤ     discrete   univariate extraDistr
#>  7:        Emp        Empirical      ℝ     discrete   univariate          -
#>  8:      EmpMV      EmpiricalMV      ℝ     discrete multivariate          -
#>  9:       Geom        Geometric     ℕ0     discrete   univariate      stats
#> 10:      Hyper   Hypergeometric     ℕ0     discrete   univariate      stats
#> 11:        Log      Logarithmic     ℕ0     discrete   univariate extraDistr
#> 12:    Matdist          Matdist    ℝ^K     discrete   univariate          -
#> 13:   Multinom      Multinomial   ℕ0^K     discrete multivariate extraDistr
#> 14:     NBinom NegativeBinomial     ℕ0     discrete   univariate          -
#> 15:       Pois          Poisson     ℕ0     discrete   univariate      stats
#> 16: WeightDisc WeightedDiscrete      ℝ     discrete   univariate          -
#>       Tags                  Alias
#>     <char>                 <char>
#>  1:                            AD
#>  2:                             B
#>  3: limits                BM, Bin
#>  4:                             C
#>  5: limits DGN, Deg, Delta, Dirac
#>  6: limits                     DU
#>  7:                             E
#>  8:                           EMV
#>  9:                       GM, Geo
#> 10: limits                    HGM
#> 11:                             L
#> 12:                            MD
#> 13: limits                     MN
#> 14: limits                     NB
#> 15:                  P, Poi, Pois
#> 16:                            WD

# Multiple filters
listDistributions(filter = list(VaLuESupport = "discrete", package = "extraDistr"))
#>    ShortName       ClassName   Type ValueSupport  VariateForm    Package   Tags
#>       <char>          <char> <char>       <char>       <char>     <char> <char>
#> 1:     DUnif DiscreteUniform      ℤ     discrete   univariate extraDistr limits
#> 2:       Log     Logarithmic     ℕ0     discrete   univariate extraDistr       
#> 3:  Multinom     Multinomial   ℕ0^K     discrete multivariate extraDistr limits
#>     Alias
#>    <char>
#> 1:     DU
#> 2:      L
#> 3:     MN