# A mean of 0.35 and an SD of 0.49 are consistent with 20 binary values,
# 7 of them ones:
debit_values(
x = 0.35,
sd = 0.49,
n = 20,
digits_x = 2,
digits_sd = 2,
data_type = "integer"
)
# None if the value set is inconsistent:
debit_values(
x = 0.35,
sd = 0.41,
n = 20,
digits_x = 2,
digits_sd = 2,
data_type = "integer"
)
# With few decimal places and a large sample, there can be several:
debit_values(
x = 0.5,
sd = 0.5,
n = 300,
digits_x = 1,
digits_sd = 1,
data_type = "integer"
)
# The closest pair to an inconsistent one:
debit_closest(
x = 0.35,
sd = 0.41,
n = 20,
digits_x = 2,
digits_sd = 2,
data_type = "integer"
)
Run the code above in your browser using DataLab