SAM(lower = 13, upper = 24, minLS = 12, maxLS = 24) # no violation
SAM(lower = 13, upper = 25, minLS = 12, maxLS = 24, constraint = 0.95) # violation with constraint
# \donttest{
out <- SAM(
lower = 13, upper = 25,
minLS = 12, maxLS = 24,
res = 0.5,
lower_percentile = 5, upper_percentile = 95,
constraint = 1,
plot = TRUE,
length_units = "cm")
out$SAM
# }
Run the code above in your browser using DataLab