Hi -
I have a hypothesis test problem that is attempting to give students partial credit for subsequent answers based on their answers earlier in the problem. For example, if a student incorrectly chooses a wrong set of hypotheses, but gets later answers correct based on their chosen test, they will get credit for the subsequent answers. Or, if they get the wrong test statistic or rejection region, but interpret those correctly, they can get credit for the interpretation.
The issue I have is with checking an interval answer as part of multiAnswer. I ask students to enter an interval for the rejection region, and then I check whether their test statistic is contained in that interval to determine the scores for their conclusions.
The problem works well except for the cases where students enter something that Webwork doesn't recognize as an interval. When students enter a single number value, or an interval like (2, 3) that could also be considered an ordered pair, the multiAnswer routine doesn't run at all.
I have read other threads that talk about changing the Context using typeMatch, but I'm having trouble understanding how to do that.
(I'm sure there may be better/more efficient ways to execute the multiAnswer checker here - but since it seems to be functioning well, I'm mostly interested in fixing the interval issue.)
Thanks in advance for any help!
-Teri Christiansen