Bug fixes
NA for df <= 1 because
it does not exist.log_yaxis = TRUE) now spans the whole logarithmic x-axis.
Previously it stopped at x = 100.NA for n <= 3 because it does not exist.
Previously it was Inf for n = 3 and a
meaningless finite value for n = 2.NA.log_yaxis = TRUE) no longer fails
with “wrong sign in ‘by’ argument” if plot_p_limit is close
to cut_logyaxis (e.g. one-sided with
plot_p_limit = 0.02).NaN s-values and the
warning “NaNs produced”.n and estimates close to -1 or 1,
e.g. estimate = 0.99 with n = 500) no longer
fail with “f() values at end points not of opposite sign”. The numerical
integration missed the peak of the density.type = "prop" with
n = 1e6).type = "prop") no longer
give NaN p-values and s-values. Their mean now
includes the probability mass at the boundary.n successes no
longer give the warning “NaNs produced”.estimate = 0.99 with n = 500: the tail
probabilities at the limits of the 95% interval were 0.027 and 0.976
instead of 0.025 and 0.975).n_values.abs.tol = 0 and rel.tol = 1e-10, counternulls
are solved on the log-probability scale, the grid CDF is integrated
incrementally from both tails, and mode_fun() searches the
full [-1, 1] interval. This fixes severe tail inaccuracies
for extreme counternulls, upper-tail cancellation
(p_two = 0, s_val = Inf), and failures when
|estimate| > 0.99999.p_two, p_one
and s_val is eliminated across all distribution types by
computing tail probabilities directly from the smaller tail rather than
via 1 - 2 * abs(cdf - 0.5).Inf
or underflow to 0.df for
t-based types, small n for variances, and narrow
correlation distributions) now use a logit-uniform probability grid
mapped through the quantile function so plots and AUCC remain accurate
instead of starving the bulk.NA when it does not exist
(df <= 1 for t-based types and
n <= 3 for variances), and p_above_null
includes or linearly interpolates the null value so the split is exact
(including inside the continuity-correction gap of
propdiff).100 * (1 - exp(x)))
now return ordered confidence limits (lwr <= upr) in
conf_frame.estimate = 0 or 1
for prop, or degenerate boundary branches for
propdiff) now return NA for the counternull
because no opposite-side value shares the null’s p-value.wilson_cicc() now uses the proportion consistent with
the rounded success count inside the square root, and
propdiff with n_values = 2 now spans both
endpoints.plot_type = "p_val", p_one and
s_val are now masked on the exact same rows as
values and p_two
(p_two < p_cutoff).plot_type = "s_val" no longer crashes
when plot_p_limit = 0, magnify_trans() is now
continuous and invertible above 1 for inverted = FALSE,
confidence level labels now follow x_scale rather than
trans, alternative = "one_sided" with
together = TRUE and same_color = TRUE now
respects col, one-sided Pearson curves now split colors at
the median rather than the estimate, and faceted plots
(together = FALSE) without an explicit xlim
now preserve per-panel free x-axes and per-panel null-line
filtering.n_values,
cut_logyaxis values that round to 0 at 10
decimal places when log_yaxis = TRUE, empty
est_names for propdiff, and gives a clear
error when n is omitted for propdiff.Changes
conf_dist() now returns its results invisibly. The plot
is still printed if plot = TRUE, but calling
conf_dist() without assigning the result no longer prints
all data frames to the console.plot = FALSE, the plot is no longer built in the
background. As a consequence, the message about null values outside of
the x-axis range only appears if a plot is created.Documentation
conf_dist() now lists all returned
elements. aucc_frame is always returned, not only if
plot = TRUE.conf_dist() now states that the exact
distribution is used for Pearson’s correlation coefficient.same_color in the
help page and vignette, updated trans and
point_est descriptions, fixed typos and a deprecated
size aesthetic in the vignette, updated
README.md, and fixed a minor punctuation typo in
DESCRIPTION.Internal changes
conf_dist() is now in a separate
internal function.devtools was removed from the suggested packages.Bug fixes
x_scale = "logarithm" is now honored. Previously only
the automatic logarithmic scale for trans = "exp"
worked.n larger than about 172 (overflow of the gamma
function), and the counternull is now computed accurately for extreme
tail probabilities. Several Pearson estimates in one call
(n and estimate of length > 1) no longer
fail.stderr, df,
tstat and estimate are now checked correctly.
Previously a mismatch of the third argument went unnoticed.trans can now be a function as documented, not only the
name of a function. Names are no longer forced to lower case when
looking up the function (a lower case name is still tried as a
fallback), functions defined inside the calling function are found, and
the transformation function does not need an argument named
x.type now gives an informative error
message.type = "prop") now use the matching two-sided level
(2 * conf_level - 1) like all other types. Previously, the
two-sided interval of level conf_level was returned.label.size).Input validation
n_values, plot_p_limit,
cut_logyaxis, nrow or ncol, and
duplicated est_names.Internal changes
ggplot2 (>= 3.5.0) and
scales (>= 1.3.0) are now required
(transform instead of trans,
new_transform()).README.Rmd and tooling files are now correctly excluded
from the package build.stats, input validation, plot properties and regression
tests against the results of version 1.6.3).n_values is used.conf_dist now also calculates the
proportion of the AUCC that lies above any specified null values.conf_dist.same_color to specify whether curves
should be distinguished by colors or not if they are plotted together in
the same graph. Can be useful if there are many curves plotted
together.plot_legend to specify whether a legend
should be drawn if multiple curves are plotted together and
distinguished by color (i.e. same_color = FALSE and
together = TRUE).col to specify the color of the curves
if they are not to be distinguished by color
(i.e. same_color = FALSE).pracma package which is now
imported.sec_axis.plot to conf_dist that
controls whether a plot is created or not. If users want to create their
own plots, they can set this option to FALSE and use the
returned data (res_frame) which is the basis for the plots
to create them.inverted which allows users to plot
p-value functions, s-value functions and confidence distributions with
the y-axis inverted.xlim is now strictly enforced: Any null
values that are outside of the specified x-axis-limits are not plotted
and a corresponding message is printed out as information.x_scale to manually force the scaling
of the x-axis.title).ylab and ylab_sec).nrow and
columns ncol to be used in facet_wrap
(ggplot2) when multiple estimates are plotted separately (option
together = FALSE).log_yaxis = TRUE to log_yaxis = FALSE.x == TRUE and
x == FALSE to isTRUE(x) and to
isFALSE(x).plot_counternull to plot the counternull
value(s) on the graphics if applicable and possible.type = "propdiff") based on Wilson’s interval
(see Newcombe (1998) for details)