# NOT RUN {
# EXAMPLE 1
# Seven observations are taken from a five-point Likert scale (coded 1 to 5).
# The reported mean is 2.857 and the reported standard deviation is 1.574.
solutions(7,1,5,2.857,1.574)
# For this mean and standard deviation there are two possible distributions:
# 1 1 2 3 4 4 5
# 1 2 2 2 3 5 5
# Optionally adding median value of 3.
solutions(7,1,5,2.857,1.574, usermed=3)
# uniquely reveals the raw sample values:
# 1 1 2 3 4 4 5
# EXAMPLE 2
# The mean is '4.00'.
# The standard deviation is '2.00'.
# Narrower set of solutions found specifying 2dp including trailing zeroes.
solutions(3,-Inf,Inf,4.00,2.00,2,2)
# uniquely reveals the raw sample values:
# 2 4 6
# }
Run the code above in your browser using DataLab