Package: TruncExpFam 1.2.0

Waldir Leoncio

TruncExpFam: Truncated Exponential Family

Handles truncated members from the exponential family of probability distributions. Contains functions such as rtruncnorm() and dtruncpois(), which are truncated versions of rnorm() and dpois() from the stats package that also offer richer output containing, for example, the distribution parameters. It also provides functions to retrieve the original distribution parameters from a truncated sample by maximum-likelihood estimation.

Authors:René Holst [aut], Waldir Leoncio [cre, aut]

TruncExpFam_1.2.0.tar.gz
TruncExpFam_1.2.0.zip(r-4.5)TruncExpFam_1.2.0.zip(r-4.4)TruncExpFam_1.2.0.zip(r-4.3)
TruncExpFam_1.2.0.tgz(r-4.4-any)TruncExpFam_1.2.0.tgz(r-4.3-any)
TruncExpFam_1.2.0.tar.gz(r-4.5-noble)TruncExpFam_1.2.0.tar.gz(r-4.4-noble)
TruncExpFam_1.2.0.tgz(r-4.4-emscripten)TruncExpFam_1.2.0.tgz(r-4.3-emscripten)
TruncExpFam.pdf |TruncExpFam.html
TruncExpFam/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/ocbe-uio/truncexpfam/issues

On CRAN:

truncated-distribution

4.95 score 5 scripts 381 downloads 58 exports 2 dependencies

Last updated 2 months agofrom:ca40b0e904. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-winOKOct 26 2024
R-4.5-linuxOKOct 26 2024
R-4.4-winOKOct 26 2024
R-4.4-macOKOct 26 2024
R-4.3-winOKOct 26 2024
R-4.3-macOKOct 26 2024

Exports:dtruncdtruncbetadtruncbinomdtruncchisqdtrunccontberndtruncexpdtruncgammadtruncinvgammadtruncinvgaussdtrunclnormdtruncnbinomdtruncnormdtruncpoisempiricalParametersmlEstimationTruncDistnatural2parametersparameters2naturalprobdistptruncptruncbetaptruncbinomptruncchisqptrunccontbernptruncexpptruncgammaptruncinvgammaptruncinvgaussptrunclnormptruncnbinomptruncnormptruncpoisqtruncqtruncbetaqtruncbinomqtruncchisqqtrunccontbernqtruncexpqtruncgammaqtruncinvgammaqtruncinvgaussqtrunclnormqtruncnbinomqtruncnormqtruncpoisrtruncrtrunc_directrtruncbetartruncbinomrtruncchisqrtrunccontbernrtruncexprtruncgammartruncinvgammartruncinvgaussrtrunclnormrtruncnbinomrtruncnormrtruncpois

Dependencies:invgammarmutil

Sampling and ML estimation

Rendered fromSampling_and_ML_estimation.Rmdusingknitr::rmarkdownon Oct 26 2024.

Last update: 2023-02-06
Started: 2022-09-14

Readme and manuals

Help Manual

Help pageTopics
Prints welcome message on package load.onAttach
Averages out the sufficient statistics T(y)averageT
Probability Density Functiondtrunc dtrunc.trunc_nbinom dtruncbeta dtruncbinom dtruncchisq dtrunccontbern dtruncexp dtruncgamma dtruncinvgamma dtruncinvgauss dtrunclnorm dtruncnbinom dtruncnorm dtruncpois
Calculate empirical parametersempiricalParameters
Extract parametersempiricalParameters.numeric
Generates an rtrunc-dispatchable classgenrtruncClass
ML Estimation of Distribution ParametersmlEstimationTruncDist
Convert natural parameters to distribution parametersnatural2parameters
Convert distribution parameters to natural parametersparameters2natural
Print sample from truncated distributionprint.trunc print.trunc_beta print.trunc_binomial print.trunc_chisq print.trunc_contbern print.trunc_exp print.trunc_gamma print.trunc_invgamma print.trunc_invgauss print.trunc_lognormal print.trunc_nbinom print.trunc_normal print.trunc_poisson
Probability distribution classprobdist probdist-class
Cumulative Distribution Functionptrunc ptruncbeta ptruncbinom ptruncchisq ptrunccontbern ptruncexp ptruncgamma ptruncinvgamma ptruncinvgauss ptrunclnorm ptruncnbinom ptruncnorm ptruncpois
Quantile Functionqtrunc qtruncbeta qtruncbinom qtruncchisq qtrunccontbern qtruncexp qtruncgamma qtruncinvgamma qtruncinvgauss qtrunclnorm qtruncnbinom qtruncnorm qtruncpois
The Truncated Exponential Familyrtrunc rtruncbeta rtruncbinom rtruncchisq rtrunccontbern rtruncexp rtruncgamma rtruncinvgamma rtruncinvgauss rtrunclnorm rtruncnbinom rtruncnorm rtruncpois rtrunc_direct
Truncated Exponential FamilyTruncExpFam-package TruncExpFam
Validate family parametersvalidateFamilyParms