Package: distributions3 0.2.2.9000

Alex Hayes

distributions3: Probability Distributions as S3 Objects

Tools to create and manipulate probability distributions using S3. Generics pdf(), cdf(), quantile(), and random() provide replacements for base R's d/p/q/r style functions. Functions and arguments have been named carefully to minimize confusion for students in intro stats courses. The documentation for each distribution contains detailed mathematical notes.

Authors:Alex Hayes [aut, cre], Ralph Moller-Trane [aut], Emil Hvitfeldt [ctb], Daniel Jordan [aut], Paul Northrop [aut], Moritz N. Lang [aut], Achim Zeileis [aut], Bruna Wundervald [ctb], Alessandro Gasparini [ctb]

distributions3_0.2.2.9000.tar.gz
distributions3_0.2.2.9000.zip(r-4.5)distributions3_0.2.2.9000.zip(r-4.4)distributions3_0.2.2.9000.zip(r-4.3)
distributions3_0.2.2.9000.tgz(r-4.4-any)distributions3_0.2.2.9000.tgz(r-4.3-any)
distributions3_0.2.2.9000.tar.gz(r-4.5-noble)distributions3_0.2.2.9000.tar.gz(r-4.4-noble)
distributions3_0.2.2.9000.tgz(r-4.4-emscripten)distributions3_0.2.2.9000.tgz(r-4.3-emscripten)
distributions3.pdf |distributions3.html
distributions3/json (API)
NEWS

# Install 'distributions3' in R:
install.packages('distributions3', repos = c('https://zeileis.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/alexpghayes/distributions3/issues

Datasets:
  • FIFA2018 - Goals scored in all 2018 FIFA World Cup matches

On CRAN:

11.71 score 100 stars 7 packages 101 scripts 5.0k downloads 85 exports 28 dependencies

Last updated 2 months agofrom:d110fe610d. Checks:OK: 7. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-winOKNov 16 2024
R-4.5-linuxOKNov 16 2024
R-4.4-winOKNov 16 2024
R-4.4-macOKNov 16 2024
R-4.3-winOKNov 16 2024
R-4.3-macOKNov 16 2024

Exports:apply_dpqrBernoulliBetaBinomialCategoricalCauchycdfChiSquaredhnbinomdhpoisdzinbinomdzipoisdztnbinomdztpoisErlangExponentialFisherFfit_mleFrechetGammageom_aucGeomAucGeometricGEVGPGumbelHurdleNegativeBinomialHurdlePoissonHyperGeometricis_continuousis_discreteis_distributionkurtosislikelihoodlog_likelihoodlog_pdfLogisticLogNormalmake_positive_integermake_supportMultinomialNegativeBinomialNormalpdfphnbinomphpoisplot_cdfplot_pdfpmfPoissonPoissonBinomialprodistpzinbinompzipoispztnbinompztpoisqhnbinomqhpoisqzinbinomqzipoisqztnbinomqztpoisrandomRevWeibullrhnbinomrhpoisrzinbinomrzipoisrztnbinomrztpoissimulate.defaultskewnessstat_aucStatAucStudentsTsuff_statsupportTukeyUniformvarianceWeibullZINegativeBinomialZIPoissonZTNegativeBinomialZTPoisson

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr

Intro to hypothesis testing

Rendered fromintro-to-hypothesis-testing.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-09

One sample sign tests

Rendered fromone-sample-sign-tests.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

One sample T-tests

Rendered fromone-sample-t-test.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

One sample Z-tests

Rendered fromone-sample-z-test.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-09

One sample Z-tests for a proportion

Rendered fromone-sample-z-test-for-proportion.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

T confidence interval for a mean

Rendered fromone-sample-t-confidence-interval.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

Paired tests

Rendered frompaired-tests.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

The Poisson distribution: From basic probability theory to regression models

Rendered frompoisson.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2022-02-22

Two sample Z-tests

Rendered fromtwo-sample-z-test.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-14

Z confidence interval for a mean

Rendered fromone-sample-z-confidence-interval.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-02-22
Started: 2019-05-09

Readme and manuals

Help Manual

Help pageTopics
Utilities for 'distributions3' objectsapply_dpqr make_positive_integer make_support
Create a Bernoulli distributionBernoulli
Create a Beta distributionBeta
Create a Binomial distributionBinomial
Create a Categorical distributionCategorical
Create a Cauchy distributionCauchy
Evaluate the cumulative distribution function of a probability distributioncdf
Evaluate the cumulative distribution function of a Bernoulli distributioncdf.Bernoulli
Evaluate the cumulative distribution function of a Beta distributioncdf.Beta
Evaluate the cumulative distribution function of a Binomial distributioncdf.Binomial
Evaluate the cumulative distribution function of a Categorical distributioncdf.Categorical
Evaluate the cumulative distribution function of a Cauchy distributioncdf.Cauchy
Evaluate the cumulative distribution function of a chi square distributioncdf.ChiSquare
Evaluate the cumulative distribution function of an Erlang distributioncdf.Erlang
Evaluate the cumulative distribution function of an Exponential distributioncdf.Exponential
Evaluate the cumulative distribution function of an F distributioncdf.FisherF
Evaluate the cumulative distribution function of a Frechet distributioncdf.Frechet
Evaluate the cumulative distribution function of a Gamma distributioncdf.Gamma
Evaluate the cumulative distribution function of a Geometric distributioncdf.Geometric
Evaluate the cumulative distribution function of a GEV distributioncdf.GEV
Evaluate the cumulative distribution function of a GP distributioncdf.GP
Evaluate the cumulative distribution function of a Gumbel distributioncdf.Gumbel
Evaluate the cumulative distribution function of a hurdle negative binomial distributioncdf.HurdleNegativeBinomial
Evaluate the cumulative distribution function of a hurdle Poisson distributioncdf.HurdlePoisson
Evaluate the cumulative distribution function of a HyperGeometric distributioncdf.HyperGeometric
Evaluate the cumulative distribution function of a Logistic distributioncdf.Logistic
Evaluate the cumulative distribution function of a LogNormal distributioncdf.LogNormal
Evaluate the cumulative distribution function of a negative binomial distributioncdf.NegativeBinomial
Evaluate the cumulative distribution function of a Normal distributioncdf.Normal
Evaluate the cumulative distribution function of a Poisson distributioncdf.Poisson
Evaluate the cumulative distribution function of a PoissonBinomial distributioncdf.PoissonBinomial
Evaluate the cumulative distribution function of an RevWeibull distributioncdf.RevWeibull
Evaluate the cumulative distribution function of a StudentsT distributioncdf.StudentsT
Evaluate the cumulative distribution function of a Tukey distributioncdf.Tukey
Evaluate the cumulative distribution function of a continuous Uniform distributioncdf.Uniform
Evaluate the cumulative distribution function of a Weibull distributioncdf.Weibull
Evaluate the cumulative distribution function of a zero-inflated negative binomial distributioncdf.ZINegativeBinomial
Evaluate the cumulative distribution function of a zero-inflated Poisson distributioncdf.ZIPoisson
Evaluate the cumulative distribution function of a zero-truncated negative binomial distributioncdf.ZTNegativeBinomial
Evaluate the cumulative distribution function of a zero-truncated Poisson distributioncdf.ZTPoisson
Create a Chi-Square distributionChiSquare
The hurdle negative binomial distributiondhnbinom phnbinom qhnbinom rhnbinom
The hurdle Poisson distributiondhpois phpois qhpois rhpois
The zero-inflated negative binomial distributiondzinbinom pzinbinom qzinbinom rzinbinom
The zero-inflated Poisson distributiondzipois pzipois qzipois rzipois
The zero-truncated negative binomial distributiondztnbinom pztnbinom qztnbinom rztnbinom
The zero-truncated Poisson distributiondztpois pztpois qztpois rztpois
Create an Erlang distributionErlang
Create an Exponential distributionExponential
Goals scored in all 2018 FIFA World Cup matchesFIFA2018
Create an F distributionFisherF
Fit a distribution to datafit_mle
Fit a Bernoulli distribution to datafit_mle.Bernoulli
Fit a Binomial distribution to datafit_mle.Binomial
Fit an Exponential distribution to datafit_mle.Exponential
Fit a Gamma distribution to datafit_mle.Gamma
Fit a Geometric distribution to datafit_mle.Geometric
Fit a Log Normal distribution to datafit_mle.LogNormal
Fit a Normal distribution to datafit_mle.Normal
Fit an Poisson distribution to datafit_mle.Poisson
Create a Frechet distributionFrechet
Create a Gamma distributionGamma
Create a Geometric distributionGeometric
Create a Generalised Extreme Value (GEV) distributionGEV
Create a Generalised Pareto (GP) distributionGP
Create a Gumbel distributionGumbel
Create a hurdle negative binomial distributionHurdleNegativeBinomial
Create a hurdle Poisson distributionHurdlePoisson
Create a HyperGeometric distributionHyperGeometric
Determine whether a distribution is discrete or continuousis_continuous is_discrete
Is an object a distribution?is_distribution
Compute the (log-)likelihood of a probability distribution given datalikelihood log_likelihood
Create a Logistic distributionLogistic
Create a LogNormal distributionLogNormal
Create a Multinomial distributionMultinomial
Create a negative binomial distributionNegativeBinomial
Create a Normal distributionNormal
Evaluate the probability density of a probability distributionlog_pdf pdf pmf
Evaluate the probability mass function of a Bernoulli distributionlog_pdf.Bernoulli pdf.Bernoulli
Evaluate the probability mass function of a Beta distributionlog_pdf.Beta pdf.Beta
Evaluate the probability mass function of a Binomial distributionlog_pdf.Binomial pdf.Binomial
Evaluate the probability mass function of a Categorical discrete distributionlog_pdf.Categorical pdf.Categorical
Evaluate the probability mass function of a Cauchy distributionlog_pdf.Cauchy pdf.Cauchy
Evaluate the probability mass function of a chi square distributionlog_pdf.ChiSquare pdf.ChiSquare
Evaluate the probability mass function of an Erlang distributionlog_pdf.Erlang pdf.Erlang
Evaluate the probability density function of an Exponential distributionlog_pdf.Exponential pdf.Exponential
Evaluate the probability mass function of an F distributionlog_pdf.FisherF pdf.FisherF
Evaluate the probability mass function of a Frechet distributionlog_pdf.Frechet pdf.Frechet
Evaluate the probability mass function of a Gamma distributionlog_pdf.Gamma pdf.Gamma
Evaluate the probability mass function of a Geometric distributionlog_pdf.Geometric pdf.Geometric
Evaluate the probability mass function of a GEV distributionlog_pdf.GEV pdf.GEV
Evaluate the probability mass function of a GP distributionlog_pdf.GP pdf.GP
Evaluate the probability mass function of a Gumbel distributionlog_pdf.Gumbel pdf.Gumbel
Evaluate the probability mass function of a hurdle negative binomial distributionlog_pdf.HurdleNegativeBinomial pdf.HurdleNegativeBinomial
Evaluate the probability mass function of a hurdle Poisson distributionlog_pdf.HurdlePoisson pdf.HurdlePoisson
Evaluate the probability mass function of a HyperGeometric distributionlog_pdf.HyperGeometric pdf.HyperGeometric
Evaluate the probability mass function of a Logistic distributionlog_pdf.Logistic pdf.Logistic
Evaluate the probability mass function of a LogNormal distributionlog_pdf.LogNormal pdf.LogNormal
Evaluate the probability mass function of a Multinomial distributionlog_pdf.Multinomial pdf.Multinomial
Evaluate the probability mass function of a NegativeBinomial distributionlog_pdf.NegativeBinomial pdf.NegativeBinomial
Evaluate the probability mass function of a Normal distributionlog_pdf.Normal pdf.Normal
Evaluate the probability mass function of a Poisson distributionlog_pdf.Poisson pdf.Poisson
Evaluate the probability mass function of a PoissonBinomial distributionlog_pdf.PoissonBinomial pdf.PoissonBinomial
Evaluate the probability mass function of an RevWeibull distributionlog_pdf.RevWeibull pdf.RevWeibull
Evaluate the probability mass function of a StudentsT distributionlog_pdf.StudentsT pdf.StudentsT
Evaluate the probability mass function of a continuous Uniform distributionlog_pdf.Uniform pdf.Uniform
Evaluate the probability mass function of a Weibull distributionlog_pdf.Weibull pdf.Weibull
Evaluate the probability mass function of a zero-inflated negative binomial distributionlog_pdf.ZINegativeBinomial pdf.ZINegativeBinomial
Evaluate the probability mass function of a zero-inflated Poisson distributionlog_pdf.ZIPoisson pdf.ZIPoisson
Evaluate the probability mass function of a zero-truncated negative binomial distributionlog_pdf.ZTNegativeBinomial pdf.ZTNegativeBinomial
Evaluate the probability mass function of a zero-truncated Poisson distributionlog_pdf.ZTPoisson pdf.ZTPoisson
Plot the CDF of a distributionplot_cdf
Plot the PDF of a distributionplot_pdf
Plot the p.m.f, p.d.f or c.d.f. of a univariate distributionplot.distribution
Create a Poisson distributionPoisson
Create a Poisson binomial distributionPoissonBinomial
Extracting fitted or predicted probability distributions from modelsprodist prodist.Arima prodist.distribution prodist.glm prodist.hurdle prodist.lm prodist.negbin prodist.zeroinfl prodist.zerotrunc
Determine quantiles of a Bernoulli distributionquantile.Bernoulli
Determine quantiles of a Beta distributionquantile.Beta
Determine quantiles of a Binomial distributionquantile.Binomial
Determine quantiles of a Categorical discrete distributionquantile.Categorical
Determine quantiles of a Cauchy distributionquantile.Cauchy
Determine quantiles of a chi square distributionquantile.ChiSquare
Determine quantiles of an Erlang distributionquantile.Erlang
Determine quantiles of an Exponential distributionquantile.Exponential
Determine quantiles of an F distributionquantile.FisherF
Determine quantiles of a Frechet distributionquantile.Frechet
Determine quantiles of a Gamma distributionquantile.Gamma
Determine quantiles of a Geometric distributionquantile.Geometric
Determine quantiles of a GEV distributionquantile.GEV
Determine quantiles of a GP distributionquantile.GP
Determine quantiles of a Gumbel distributionquantile.Gumbel
Determine quantiles of a hurdle negative binomial distributionquantile.HurdleNegativeBinomial
Determine quantiles of a hurdle Poisson distributionquantile.HurdlePoisson
Determine quantiles of a HyperGeometric distributionquantile.HyperGeometric
Determine quantiles of a Logistic distributionquantile.Logistic
Determine quantiles of a LogNormal distributionquantile.LogNormal
Determine quantiles of a NegativeBinomial distributionquantile.NegativeBinomial
Determine quantiles of a Normal distributionquantile.Normal
Determine quantiles of a Poisson distributionquantile.Poisson
Determine quantiles of a PoissonBinomial distributionquantile.PoissonBinomial
Determine quantiles of a RevWeibull distributionquantile.RevWeibull
Determine quantiles of a StudentsT distributionquantile.StudentsT
Determine quantiles of a Tukey distributionquantile.Tukey
Determine quantiles of a continuous Uniform distributionquantile.Uniform
Determine quantiles of a Weibull distributionquantile.Weibull
Determine quantiles of a zero-inflated negative binomial distributionquantile.ZINegativeBinomial
Determine quantiles of a zero-inflated Poisson distributionquantile.ZIPoisson
Determine quantiles of a zero-truncated negative binomial distributionquantile.ZTNegativeBinomial
Determine quantiles of a zero-truncated Poisson distributionquantile.ZTPoisson
Draw a random sample from a probability distributionrandom simulate.distribution
Draw a random sample from a Bernoulli distributionrandom.Bernoulli
Draw a random sample from a Beta distributionrandom.Beta
Draw a random sample from a Binomial distributionrandom.Binomial
Draw a random sample from a Categorical distributionrandom.Categorical
Draw a random sample from a Cauchy distributionrandom.Cauchy
Draw a random sample from a chi square distributionrandom.ChiSquare
Draw a random sample from an Erlang distributionrandom.Erlang
Draw a random sample from an Exponential distributionrandom.Exponential
Draw a random sample from an F distributionrandom.FisherF
Draw a random sample from a Frechet distributionrandom.Frechet
Draw a random sample from a Gamma distributionrandom.Gamma
Draw a random sample from a Geometric distributionrandom.Geometric
Draw a random sample from a GEV distributionrandom.GEV
Draw a random sample from a GP distributionrandom.GP
Draw a random sample from a Gumbel distributionrandom.Gumbel
Draw a random sample from a hurdle negative binomial distributionrandom.HurdleNegativeBinomial
Draw a random sample from a hurdle Poisson distributionrandom.HurdlePoisson
Draw a random sample from a HyperGeometric distributionrandom.HyperGeometric
Draw a random sample from a Logistic distributionrandom.Logistic
Draw a random sample from a LogNormal distributionrandom.LogNormal
Draw a random sample from a Multinomial distributionrandom.Multinomial
Draw a random sample from a negative binomial distributionrandom.NegativeBinomial
Draw a random sample from a Normal distributionrandom.Normal
Draw a random sample from a Poisson distributionrandom.Poisson
Draw a random sample from a PoissonBinomial distributionrandom.PoissonBinomial
Draw a random sample from an RevWeibull distributionrandom.RevWeibull
Draw a random sample from a StudentsT distributionrandom.StudentsT
Draw a random sample from a Tukey distributionrandom.Tukey
Draw a random sample from a continuous Uniform distributionrandom.Uniform
Draw a random sample from a Weibull distributionrandom.Weibull
Draw a random sample from a zero-inflated negative binomial distributionrandom.ZINegativeBinomial
Draw a random sample from a zero-inflated Poisson distributionrandom.ZIPoisson
Draw a random sample from a zero-truncated negative binomial distributionrandom.ZTNegativeBinomial
Draw a random sample from a zero-truncated Poisson distributionrandom.ZTPoisson
Create a reversed Weibull distributionRevWeibull
Simulate responses from fitted model objectssimulate.default
Fill out area under the curve for a plotted PDFGeomAuc geom_auc StatAuc stat_auc
Create a Student's T distributionStudentsT
Compute the sufficient statistics of a distribution from datasuff_stat
Compute the sufficient statistics for a Bernoulli distribution from datasuff_stat.Bernoulli
Compute the sufficient statistics for the Binomial distribution from datasuff_stat.Binomial
Compute the sufficient statistics of an Exponential distribution from datasuff_stat.Exponential
Compute the sufficient statistics for a Gamma distribution from datasuff_stat.Gamma
Compute the sufficient statistics for the Geometric distribution from datasuff_stat.Geometric
Compute the sufficient statistics for a Log-normal distribution from datasuff_stat.LogNormal
Compute the sufficient statistics for a Normal distribution from datasuff_stat.Normal
Compute the sufficient statistics of an Poisson distribution from datasuff_stat.Poisson
Return the support of a distributionsupport
Return the support of the Bernoulli distributionsupport.Bernoulli
Return the support of the Beta distributionsupport.Beta
Return the support of the Binomial distributionsupport.Binomial
Return the support of the Cauchy distributionsupport.Cauchy
Return the support of the ChiSquare distributionsupport.ChiSquare
Return the support of the Erlang distributionsupport.Erlang
Return the support of the Exponential distributionsupport.Exponential
Return the support of the FisherF distributionsupport.FisherF
Return the support of the Frechet distributionsupport.Frechet
Return the support of the Gamma distributionsupport.Gamma
Return the support of the Geometric distributionsupport.Geometric
Return the support of a GEV distributionsupport.GEV
Return the support of the GP distributionsupport.GP
Return the support of the Gumbel distributionsupport.Gumbel
Return the support of the hurdle negative binomial distributionsupport.HurdleNegativeBinomial
Return the support of the hurdle Poisson distributionsupport.HurdlePoisson
Return the support of the HyperGeometric distributionsupport.HyperGeometric
Return the support of the Logistic distributionsupport.Logistic
Return the support of the LogNormal distributionsupport.LogNormal
Return the support of the NegativeBinomial distributionsupport.NegativeBinomial
Return the support of the Normal distributionsupport.Normal
Return the support of the Poisson distributionsupport.Poisson
Return the support of the PoissonBinomial distributionsupport.PoissonBinomial
Return the support of the RevWeibull distributionsupport.RevWeibull
Return the support of the StudentsT distributionsupport.StudentsT
Return the support of the Tukey distributionsupport.Tukey
Return the support of the Uniform distributionsupport.Uniform
Return the support of the Weibull distributionsupport.Weibull
Return the support of the zero-inflated negative binomial distributionsupport.ZINegativeBinomial
Return the support of the zero-inflated Poisson distributionsupport.ZIPoisson
Return the support of the zero-truncated negative binomial distributionsupport.ZTNegativeBinomial
Return the support of the zero-truncated Poisson distributionsupport.ZTPoisson
Create a Tukey distributionTukey
Create a Continuous Uniform distributionUniform
Compute the moments of a probability distributionkurtosis skewness variance
Create a Weibull distributionWeibull
Create a zero-inflated negative binomial distributionZINegativeBinomial
Create a zero-inflated Poisson distributionZIPoisson
Create a zero-truncated negative binomial distributionZTNegativeBinomial
Create a zero-truncated Poisson distributionZTPoisson