Apply a hypothesis test to a fitted model.
This is normally an internal function, but it can be overloaded to extend simr
to other packages.
doTest(object, test, ...)
object
: an object to apply a statistical test to, usually a fitted model.test
: a test function, see tests ....
: additional options.a p-value with attributes describing the test.