Determine how many samples closure_generate() would find for
a given set of summary statistics.
closure_count_all()counts all CLOSURE samples that correspond to the input summary statistics, but without actually generating the samples. This is much faster thanclosure_generate()if there are many results.closure_count_initial()only counts the first round of samples, from which all other ones would be generated. Based on scale range only.
This can help predict how much time closure_generate() would take, and
avoid prohibitively long runs.
Usage
closure_count_all(
mean,
sd,
n,
scale_min,
scale_max,
rounding = "up_or_down",
threshold = 5
)
closure_count_initial(scale_min, scale_max)Arguments
- mean
String (length 1). Reported mean.
- sd
String (length 1). Reported sample standard deviation.
- n
Numeric (length 1). Reported sample size.
- scale_min, scale_max
Integers (length 1 each). Minimum and maximum of the scales to which the reported statistics refer.
- rounding
String (length 1). Rounding method assumed to have created
meanandsd. See Rounding options, but also the Rounding limitations section below. Default is"up_or_down"which, e.g., unrounds0.12to0.115as a lower bound and0.125as an upper bound.- threshold
Numeric (length 1). Number from which to round up or down, if
roundingis any of"up_or_down","up", and"down". Default is5.