Skip to contents

Package Overview & Interfaces

Package overview and common formula-interface conventions.

lumen-package
lumen: Tests and Distributions for DescToolsX
Formulas
Formula Interface - Common Arguments

Confidence Intervals for Location

Confidence intervals and sample-size calculations for means, medians, and quantiles.

bootCI()
Simple Bootstrap Confidence Intervals
meanCI()
Confidence Intervals for the Mean
meanCIn()
Sample Size for a Given Width of a Confidence Interval for a Mean
meanDiffCI()
Confidence Interval For Difference of Means
medianCI()
Confidence Interval for the Median
quantileCI()
Confidence Interval for Any Quantile
sumCI()
Add Up Partial Confidence Intervals to a Total CI

Confidence Intervals for Proportions, Rates & Dispersion

Confidence intervals for categorical outcomes, rates, correlations, and scale parameters.

binomCI() binomCIn()
Confidence Intervals for Binomial Proportions
binomDiffCI()
Confidence Intervals for the Difference of Two Binomial Proportions
binomRatioCI()
Confidence Intervals for the Ratio of Two Binomial Proportions
multinomCI()
Confidence Intervals for Multinomial Proportions
poissonCI()
Confidence Interval for a Poisson Rate
poissonDiffCI()
Confidence Interval for the Difference Between Two Poisson Rates
poissonRatioCI()
Confidence Interval for the Ratio of Two Poisson Rates
corCI()
Confidence Interval for a Pearson Correlation
madCI() madDiffCI() madRatioCI()
Confidence Intervals for Median Absolute Deviations
varCI()
Confidence Interval for a Variance

Location & Correlation Tests

Parametric, nonparametric, robust, multivariate, and correlation tests.

brunnerMunzelTest()
Brunner-Munzel Test for Comparing Stochastic Dominance Between Two Independent Samples
hotellingsT2Test()
Hotelling's T2 Test for Comparing Multivariate Mean Vectors
moodMedianTest()
Mood's Median Test for Comparing Medians Across Independent Groups
signTest()
Sign Test for Testing a Median or Paired Median Difference
tTestA()
Student's T-Test Based on Sample Statistics for Performing T-Tests From Summary Statistics
vanWaerdenTest()
Van Der Waerden Test for Comparing Group Locations Using Normal Scores
yuenTTest()
Yuen T-Test for Robust Comparison of Trimmed Means
zTest()
Z-Test for Testing Means With Known Population Standard Deviations
corTest()
Fast Correlation Test for Testing Pairwise Correlations in a Matrix

Categorical Data Tests

Tests for proportions, contingency tables, marginal homogeneity, and ordinal trends.

barnardTest()
Barnard's Unconditional Test for Comparing Two Independent Proportions in a 2×2 Table
bhapkarTest()
Bhapkar Marginal Homogeneity Test for Comparing Paired Marginal Distributions Across Multiple Categories
breslowDayTest()
Breslow-Day Test for Comparing Odds Ratios Across Strata
cochranArmitageTest()
Cochran-Armitage Test for Detecting Trends in Proportions Across Ordered Groups
cochranQTest()
Cochran's Q Test for Comparing Matched Binary Responses Across Multiple Conditions
gTest()
G-Test for Likelihood-Ratio Testing of Count Data
lehmacherTest() print(<MHTest>)
Lehmacher's Test for Locating Asymmetry in Paired Multicategory Data
mantelTrendTest()
Mantel Linear-by-Linear Association Test for Detecting Linear Association Between Ordinal Variables
stuartMaxwellTest()
Stuart-Maxwell Test for Testing Marginal Homogeneity in Paired Multicategory Data
woolfTest()
Woolf Test for Comparing Odds Ratios Across Stratified 2×2 Tables

Variance & Dispersion Tests

Parametric, robust, and rank-based comparisons of variability.

leveneTest()
Levene's Test for Comparing Variances Across Groups
mosesTest() print(<mosesTestResult>)
Moses Test of Extreme Reactions for Comparing Extreme-Value Behaviour Between Two Groups
siegelTukeyTest()
Siegel-Tukey Test for Comparing Dispersion Between Two Independent Groups
varTest()
Variance Test for Testing One Variance or Comparing Two Variances

Normality & Goodness-of-Fit Tests

Tests for normality and distributional goodness of fit.

andersonDarlingTest()
Anderson-Darling Test for Assessing Distributional Fit, Especially in the Tails
cramerVonMisesTest()
Cramer-Von Mises Test for Assessing Deviations From Normality
jarqueBeraTest()
(Robust) Jarque-Bera Test for Assessing Normality From Skewness and Kurtosis
lillieTest()
Lilliefors (Kolmogorov-Smirnov) Test for Assessing Normality With Estimated Parameters
pearsonTest()
Pearson Chi-Square Test for Assessing Normality From Grouped Frequencies
shapiroFranciaTest()
Shapiro-Francia Test for Assessing Normality From Normal Scores

Trend, Randomness & Time Series Tests

Tests for stationarity, trends, serial dependence, and randomness.

adfTest()
Augmented Dickey-Fuller Unit Root Test for Detecting Unit Roots in Time Series
bartelsRankTest()
Bartels Rank Test of Randomness for Detecting Non-Random Order in Continuous Sequences
kpssTest()
Kwiatkowski-Phillips-Schmidt-Shin Test for Assessing Level or Trend Stationarity
runsTest()
Runs Test for Detecting Non-Random Order in Sequences
vonNeumannTest()
Von Neumann's Successive Difference Test for Detecting Serial Dependence in Continuous Sequences
coxStuartTest()
Cox-Stuart Trend Test for Detecting Monotonic Trends in Ordered Data
jonckheereTerpstraTest()
Jonckheere-Terpstra Test for Detecting Ordered Differences Across Independent Groups
pageTest()
(Exact) Page Test for Detecting Ordered Treatment Effects in Blocked Designs

Regression Diagnostics

Tests for heteroscedasticity, autocorrelation, calibration, and model fit.

bpTest()
Breusch-Pagan Test for Detecting Heteroscedasticity in Regression Models
breuschGodfreyTest()
Breusch-Godfrey Test for Detecting Higher-Order Serial Correlation in Regression Residuals
durbinWatsonTest()
Durbin-Watson Test for Detecting First-Order Autocorrelation in Regression Residuals
hosmerLemeshowTest() print(<HosmerLemeshowTest>)
Hosmer-Lemeshow Goodness of Fit Test for Assessing Logistic Regression Calibration
leCessieTest() print(<LeCessieTest>)
Le Cessie-Van Houwelingen-Copas-Hosmer Global Goodness of Fit Test for Assessing Global Logistic Regression Fit

Multiple Comparisons & Post-Hoc Tests

Parametric and nonparametric multiple-comparison procedures and result helpers.

conoverTest()
Conover's Test for Pairwise Rank Comparisons After a Kruskal–Wallis Test
dscfTest()
Dwass-Steel-Critchlow-Fligner Test for Nonparametric All-Pairs Group Comparisons
dunnettTest()
Dunnett's Test for Comparing Several Treatments With a Common Control
dunnTest()
Dunn's Test for Pairwise Rank Comparisons After a Kruskal–Wallis Test
gamesHowellTest()
Games-Howell Post-Hoc Test for Pairwise Mean Comparisons Under Unequal Variances
nemenyiTest()
Nemenyi Test for Nonparametric All-Pairs Rank Comparisons
postHocTest() print(<PostHocTest>)
Post Hoc Tests for Multiple Comparisons Following Anova
scheffeTest()
Scheffé Test for Testing Arbitrary Contrasts Following Anova
steelTest()
Steel Test for Nonparametric Comparisons With a Common Control
plot(<PostHocTest>)
Plot Routine for Posthoc Tests Results
print(<rankTest>)
Print Method for rankTest Objects
signifDiff() print(<signifDiff>)
Significantly Different Levels per Group

Probability Distributions

Distribution functions, moments, order statistics, and random compositions.

distributions-overview
Distribution Functions in lumen
mnorm() mexp() mgamma() mlnorm() mbeta() mchisq() mt() mf() mtri()
Mean and Variance of Continuous Distributions
mbinom() mpois() mgeom() mnbinom() mhyper() mbenford()
Mean and Variance of Discrete Distributions
mgumbel() mrevgumbel() mfrechet() mrevweibull() mgev() mgpd() mgompertz()
Mean and Variance of Extreme Value Distributions
dbenford() pbenford() qbenford() rbenford()
Benford's Distribution
ddirichlet() pdirichlet() rdirichlet() qdirichlet()
Dirichlet Distribution
dgompertz() pgompertz() qgompertz() rgompertz()
Gompertz Distribution
dtri() ptri() qtri() rtri()
Triangular Distribution
dextreme() pextreme() qextreme() rextreme()
Distributions of Maxima and Minima
dfrechet() pfrechet() qfrechet() rfrechet()
Fréchet Distribution
dgev() pgev() qgev() rgev()
Generalized Extreme Value Distribution
dgpd() pgpd() qgpd() rgpd()
Generalized Pareto Distribution
dgumbel() pgumbel() qgumbel() rgumbel()
Gumbel Distribution
dgumbelx() pgumbelx() qgumbelx() rgumbelx()
Maxima of Two Gumbel Distributions
drevgumbel() prevgumbel() qrevgumbel() rrevgumbel() qrevgumbelExp()
Reverse Gumbel Distribution
drevweibull() prevweibull() qrevweibull() rrevweibull() dnweibull() pnweibull() qnweibull() rnweibull()
Reverse Weibull Distribution
dorder() porder() rorder()
Distributions of Order Statistics
pAD() qAD()
Null Distribution of Anderson-Darling Test Statistic
rsum1()
Random proportions summing to 1

Statistical Utilities & Power

Transformations, scoring, repeated-measures corrections, and power calculations.

fisherZ() fisherZInv()
Fisher's z-Transformation
scores()
Compute Scores for Ordinal Contingency Tables
powerChisqTest()
Power Calculations for Power and Sample-Size Calculations for Chi-Square Tests
sphericityEps()
Greenhouse-Geisser And Huynh-Feldt Epsilons