likelihood.model - Likelihood-Based Statistical Inference in the Fisherian Tradition
Facilitates building likelihood models in the Fisherian tradition following Richard Royall (1997, ISBN:978-0412044113) "Statistical Evidence: A Likelihood Paradigm". Defines generic methods for working with likelihoods (loglik(), score(), hess_loglik(), fim()) and provides functions for pure likelihood-based inference (support(), relative_likelihood(), likelihood_interval(), profile_loglik()).
Last updated
fisher-information-matrixlikelihoodmaximum-likelihood-estimationsampling-distribution
7.54 score 2 stars 6 dependents 13 scripts 516 downloadsalgebraic.dist - Algebra over Probability Distributions
Provides an algebra over probability distributions enabling composition, sampling, and automatic simplification to closed forms. Supports normal, exponential, gamma, Weibull, chi-squared, uniform, beta, log-normal, Poisson, multivariate normal, empirical, and mixture distributions with algebraic operators (addition, subtraction, multiplication, division, power, exp, log, min, max) that automatically simplify when mathematical identities apply. Includes closed-form MVN conditioning (Schur complement), affine transformations, mixture marginals/conditionals (Bayes rule), and limiting distribution builders (CLT, LLN, delta method). Uses S3 classes for distributions and R6 for support objects.
Last updated
data-sciencedistributionsmonte-carloprobabilitystatistics
7.04 score 1 stars 11 dependents 55 scripts 632 downloadsflexhaz - Dynamic Failure Rate Distributions for Survival Analysis
Flexible framework for specifying survival distributions through their hazard (failure rate) functions. Define arbitrary time-varying hazard functions to model complex failure patterns including bathtub curves, proportional hazards with covariates, and other non-standard hazard behaviors. Provides automatic computation of survival, CDF, PDF, quantiles, and sampling. Implements the likelihood model interface for maximum likelihood estimation with right-censored and left-censored survival data.
Last updated
automatic-differentiationcensored-datafailure-ratehazard-functionlikelihood-functionsmlereliabilitystatistical-inferencesurvival-analysis
6.90 score 3 dependents 39 scripts 517 downloadsmaskedcauses - Likelihood Models for Systems with Masked Component Cause of Failure
Maximum likelihood estimation for series systems where the component cause of failure is masked. Implements analytical log-likelihood, score, and Hessian functions for exponential, homogeneous Weibull, and heterogeneous Weibull component lifetimes under masked cause conditions (C1, C2, C3). Supports exact, right-censored, left-censored, and interval-censored observations via composable observation functors. Provides random data generation, model fitting, and Fisher information for asymptotic inference. See Lin, Loh, and Bai (1993) <doi:10.1109/24.257799> and Craiu and Reiser (2006) <doi:10.1111/j.1541-0420.2005.00498.x>.
Last updated
censoringmasked-datamaximum-likelihoodreliabilityseries-systemsstatisticssurvival-analysis
6.13 score 1 stars 1 dependents 16 scripts 523 downloadscompositional.mle - Compositional Maximum Likelihood Estimation
Provides composable optimization strategies for maximum likelihood estimation (MLE). Solvers are first-class functions that combine via sequential chaining, parallel racing, and random restarts. Implements gradient ascent, Newton-Raphson, quasi-Newton (BFGS), and derivative-free methods with support for constrained optimization and tracing. Returns 'mle' objects compatible with 'algebraic.mle' for downstream analysis. Methods based on Nocedal J, Wright SJ (2006) "Numerical Optimization" <doi:10.1007/978-0-387-40065-5>.
Last updated
composabledslestimationmaximum-likelihoodmlemle-estimationnumerical-methodsoptimizationstatistics
5.88 score 1 dependents 9 scripts 485 downloadsserieshaz - Series System Distributions from Dynamic Failure Rate Components
Compose multiple dynamic failure rate distributions into series system distributions where the system hazard equals the sum of component hazards. Supports hazard, survival, cumulative distribution function, density, sampling, and maximum likelihood estimation fitting via the dfr_dist() class from 'flexhaz'. Series distributions implement the 'dist.structure' protocol so structural queries (phi, min_paths, min_cuts, system_signature, structural importance, reliability, dual) and the importance measures from 'dist.structure' work directly on serieshaz objects. Methods for series system reliability follow Barlow and Proschan (1975, ISBN:0898713692).
Last updated
hazard-functionmlereliabilityseries-systemssurvival-analysis
5.56 score 1 dependents 12 scripts 498 downloadshypothesize - Consistent API for Hypothesis Testing
Provides a consistent API for hypothesis testing built on principles from 'Structure and Interpretation of Computer Programs': data abstraction, closure (combining tests yields tests), and higher-order functions (transforming tests). Implements z-tests, Wald tests, likelihood ratio tests, Fisher's method for combining p-values, and multiple testing corrections. Designed for use by other packages that want to wrap their hypothesis tests in a consistent interface.
Last updated
hypothesis-testinglikelihoodlikelihood-ratio-teststatisticswald-test
4.90 score 2 stars 6 scripts 490 downloadsnabla - Exact Derivatives via Automatic Differentiation
Exact automatic differentiation for R functions. Provides a composable derivative operator D that computes gradients, Hessians, Jacobians, and arbitrary-order derivative tensors at machine precision. D(D(f)) gives Hessians, D(D(D(f))) gives third-order tensors for skewness of maximum likelihood estimators, and so on to any order. Works through any R code including loops, branches, and control flow.
Last updated
automatic-differentiationderivative-operatorgradienthessianhigher-order-derivativesjacobianmle
4.88 score 8 scripts 127 downloadsmaskedhaz - Masked-Cause Likelihood Models for Series Systems with Arbitrary Hazard Components
Likelihood-based inference for series systems with masked component cause of failure, using arbitrary dynamic failure rate component distributions. Computes log-likelihood, score, Hessian, and maximum likelihood estimates for masked data satisfying conditions C1, C2, C3 under general component hazard functions. Implements the 'series_md' protocol defined in the 'maskedcauses' package.
Last updated
censored-datahazard-functionlikelihood-functionsmasked-datamlereliabilityseries-systemssurvival-analysis
4.60 score 6 scripts 505 downloadsfemtograd - Automatic Differentiation for Statistical Computing
Provides automatic differentiation via reverse-mode AD (backpropagation) for first-order gradients and forward-over-reverse AD for Hessian computation. Includes log-likelihood functions for exponential family distributions (normal, exponential, Poisson, binomial, gamma, beta, negative binomial, Weibull, Pareto), MLE optimization via fit() with base R generics (coef, vcov, confint, logLik, AIC/BIC), hypothesis testing (likelihood ratio, Wald), profile likelihood, bootstrap inference, and model diagnostics. Designed for pedagogy and modern statistics rather than large-scale ML.
Last updated
automatic-differentiationbackpropagationmaximum-likelihoodhessianstatisticscomputational-graphinferencepedagogy
4.18 score 1 stars 12 scripts