| CoCo {CoCo} | R Documentation |
The CoCo package with the interface functions to CoCo and CoCo for discrete data.
The function dG is an "alias" for dg,
but with loading the packages "CoCoGraph" and "dynamicGraph".
These packages with dg for CoCo-objects
are not loaded when loading the package "CoCo" to make the loading
of "CoCo" faster.
For help on dg
use help(dg, package = "dynamicGraph").
Please quit by quitCoCo
to remove temporary files.
Jens Henrik Badsberg
Badsberg, J.H.: A guide to CoCo, JSS, 2001 ( http://www.jstatsoft.org/v06/i04/ ) and Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.
# Attach data, here table of counts:
data(Reinis);
# Create a CoCo-object:
CoCoObject <- makeCoCo();
# Enter the table of counts into the CoCo-object:
enterTable(Reinis, object = CoCoObject);
# Enter the saturated model into the CoCo-object, and return a model object:
fullModel <- makeModel(enterModel("*", object = CoCoObject));
# Display a graph of the model:
fullGraph <- dG(fullModel, title = "Full", returnLink = TRUE);
# Do a backward elimination of edges:
backward(recursive = TRUE, headlong = TRUE, coherent = TRUE,
follow = TRUE, object = CoCoObject);
# Display the result of the backward elimination:
lastModel <- makeModel("last", object = CoCoObject);
backwardGraph <- dG(lastModel, title = "Last",
dynamicGraph = fullGraph, slave = TRUE);
# Do the EH-procedure:
eh(object = CoCoObject);
# Terminate the CoCo-object with disposing temporary files:
endCoCo(object = CoCoObject);