This function post processes the outputs of overshoot.oneProp(), overshoot.oneZ(), overshoot.oneT(), overshoot.twoZ() and overshoot.twoT(), and then calculates the Type 1 or Type 2 error probabilities of a MSPRT.
error.summary(error.type, delta, root, count, inconclusive.vec, R,
type1, type2)a character;
``type1'' for computing Type 1 error probability.
``type2'' for computing Type 2 error probability.
a positive numeric; the termination threshold.
a numeric; given this, (error probability - root) is returned.
a numeric (integer);
same as the ``count'' output from overshoot.oneProp(), overshoot.oneZ(), overshoot.oneT(), overshoot.twoZ() and overshoot.twoT() of the same error.type.
a numeric vector;
same as the ``inconclusive.vec'' output from overshoot.oneProp(), overshoot.oneZ(), overshoot.oneT(), overshoot.twoZ() and overshoot.twoT() of the same error.type.
a numeric (integer); number of replications in Monte Carlo method that is used in overshoot.oneProp(), overshoot.oneZ(), overshoot.oneT(), overshoot.twoZ() and overshoot.twoT() of the same error.type.
a numeric in (0,1); the probability at which we want to control the Type 1 error of the MSPRT.
a numeric in (0,1); the probability at which we want to control the Type 2 error of the MSPRT.
a numeric; the difference (error probability of the MSPRT - root).
Suppose we have the Monte Carlo outputs from overshoot.oneProp() or overshoot.oneZ() or overshoot.oneT() or overshoot.twoZ() or overshoot.twoT() corresponding to some error.type. Given these, the function returns the difference (error probability - root) for the MSPRT whose termination threshold is delta.