What if the input of ec is too short?
Imagine this: The user wants to calculate EC90 of the effect. But the supplied effect values only go down to 30 % of the control. In this case the function should warn the user that the input is insufficient and tell them how to improve it.
Also write a test for that.