conf

Visualization and Analysis of Statistical Measures of Confidence

CRAN Package

Enables: (1) plotting two-dimensional confidence regions, (2) coverage analysis of confidence region simulations, (3) calculating confidence intervals and the associated actual coverage for binomial proportions, (4) calculating the support values and the probability mass function of the Kaplan-Meier product-limit estimator, and (5) plotting the actual coverage function associated with a confidence interval for the survivor function from a randomly right-censored data set. Each is given in greater detail next. (1) Plots the two-dimensional confidence region for probability distribution parameters (supported distribution suffixes: cauchy, gamma, invgauss, logis, llogis, lnorm, norm, unif, weibull) corresponding to a user-given complete or right-censored dataset and level of significance. The crplot() algorithm plots more points in areas of greater curvature to ensure a smooth appearance throughout the confidence region boundary. An alternative heuristic plots a specified number of points at roughly uniform intervals along its boundary. Both heuristics build upon the radial profile log-likelihood ratio technique for plotting confidence regions given by Jaeger (2016) doi:10.1080/00031305.2016.1182946, and are detailed in a publication by Weld et al. (2019) doi:10.1080/00031305.2018.1564696. (2) Performs confidence region coverage simulations for a random sample drawn from a user-specified parametric population distribution, or for a user-specified dataset and point of interest with coversim(). (3) Calculates confidence interval bounds for a binomial proportion with binomTest(), calculates the actual coverage with binomTestCoverage(), and plots the actual coverage with binomTestCoveragePlot(). Calculates confidence interval bounds for the binomial proportion using an ensemble of constituent confidence intervals with binomTestEnsemble(). Calculates confidence interval bounds for the binomial proportion using a complete enumeration of all possible transitions from one actual coverage acceptance curve to another which minimizes the root mean square error for n <= 15 and follows the transitions for well-known confidence intervals for n > 15 using binomTestMSE(). (4) The km.support() function calculates the support values of the Kaplan-Meier product-limit estimator for a given sample size n using an induction algorithm described in Qin et al. (2023) doi:10.1080/00031305.2022.2070279. The km.outcomes() function generates a matrix containing all possible outcomes (all possible sequences of failure times and right-censoring times) of the value of the Kaplan-Meier product-limit estimator for a particular sample size n. The km.pmf() function generates the probability mass function for the support values of the Kaplan-Meier product-limit estimator for a particular sample size n, probability of observing a failure h at the time of interest expressed as the cumulative probability percentile associated with X = min(T, C), where T is the failure time and C is the censoring time under a random-censoring scheme. The km.surv() function generates multiple probability mass functions of the Kaplan-Meier product-limit estimator for the same arguments as those given for km.pmf(). (5) The km.coverage() function plots the actual coverage function associated with a confidence interval for the survivor function from a randomly right-censored data set for one or more of the following confidence intervals: Greenwood, log-minus-log, Peto, arcsine, and exponential Greenwood. The actual coverage function is plotted for a small number of items on test, stated coverage, failure rate, and censoring rate. The km.coverage() function can print an optional table containing all possible failure/censoring orderings, along with their contribution to the actual coverage function.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 721 times in the last 30 days. More downloads than an obscure whitepaper, but not enough to bring down any servers. A solid effort! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 7 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 downloadsMar 3, 2025
0 downloadsMar 4, 2025
55 downloadsMar 5, 2025
4 downloadsMar 6, 2025
7 downloadsMar 7, 2025
48 downloadsMar 8, 2025
7 downloadsMar 9, 2025
11 downloadsMar 10, 2025
26 downloadsMar 11, 2025
14 downloadsMar 12, 2025
52 downloadsMar 13, 2025
6 downloadsMar 14, 2025
45 downloadsMar 15, 2025
7 downloadsMar 16, 2025
29 downloadsMar 17, 2025
57 downloadsMar 18, 2025
27 downloadsMar 19, 2025
16 downloadsMar 20, 2025
18 downloadsMar 21, 2025
34 downloadsMar 22, 2025
14 downloadsMar 23, 2025
49 downloadsMar 24, 2025
6 downloadsMar 25, 2025
8 downloadsMar 26, 2025
6 downloadsMar 27, 2025
89 downloadsMar 28, 2025
4 downloadsMar 29, 2025
6 downloadsMar 30, 2025
5 downloadsMar 31, 2025
55 downloadsApr 1, 2025
9 downloadsApr 2, 2025
7 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
4
89

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 10,037 times in the last 365 days. That's enough downloads to make it mildly famous in niche technical communities. A badge of honor! The day with the most downloads was Nov 11, 2024 with 125 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports4 packages
  • Suggests3 packages