returnTest {CoCoRaw}R Documentation

Return the Pearson $chi^2$, the power divergence, etc.

Description

Return for discrete data the Pearson $chi^2$, the power divergence, and the deviance, and for tests of two ordinal variable conditional independent given discrete also the Goodman and Kruskal's Gamma coefficient, and for mixed data the deviance and the F-test. For discrete data also exact p-values can be returned.

Usage

returnTest(model.1 = "current", model.2 = "base", push.pop = FALSE, data = NULL, 
           object = .object.of.models(model.1, model.2, data = data, ...), ...)

Arguments

model.1 See isSubmodel.
model.2 See isSubmodel.
push.pop Logical, if push.pop is TRUE, both model arguments are numeric and the object argument is a CoCoCg object then model pointers are restored by less calls of CoCoCg. See also returnModelNumber and makeCurrent.
data See exportCoCo.
object See exportCoCo.
... Additional arguments to generate the CoCo object from the data argument. See propertyModel.

Value

A labeled vector of reals, or NULL if the an error occur, e.g. the models are not available or not nested.

Note

Author(s)

Jens Henrik Badsberg

References

Badsberg, J.H.: A guide to CoCo, JSS, 2001 ( http://www.jstatsoft.org/v06/i04/ ) and Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.

See Also

enterModel, makeModel, showModel, makeCurrent, returnModel, returnModelNumber, partialAssociations, optionsCoCo, showTest, showDeviance, returnDeviance, backward and forward.

Examples






[Package CoCoRaw version 0.1.6.7 Index]