editModel {CoCoRaw}R Documentation

Edit model

Description

Edit or transform models.

Usage

editModel(action = NULL, modification = NULL, model = FALSE, 
          result.form = "maximal-interaction-terms", omit.test = TRUE, 
          make.model = FALSE, return.test = FALSE, push.pop = FALSE, 
          edges = TRUE, dispose = FALSE, data = NULL, 
          object = .object.of.model(model, data = data, ...), ...)

Arguments

action A character string. The argument action should be "marginal.model", "collaps.model", "generate.decomposable", "generate.graphical", "generate.skeleton", "generate.moral", "dual.to.normal", "nor- mal.to.dual", "drop.factor", "drop.edges", "add.edges", "drop.- interactions", "add.interactions", "reduce.generator", "remove.- generator", "remove.total.interaction", "meet.of.models", (or "intersection"), "join.of.models", (or "union"), "difference.of.- models", or "decompose.models". See the section "Details" below.
modification A character string or a model as model. The argument modification should be a set, generating class, or a model.
model Numeric, model object, text string, or logical. A numeric should give a valid model number in the object, see makeCurrent about the model list. The argument can also be a CoCo model object, see makeModel about creating model objects. A text string can give the model as a generating class (or generating classes in MIM-form for mixed models), see enterModel for the notation of models. The text strings "base", "current", or "last" refers to the three models. The default value "current" for the CURRENT model can also be given as the logical FALSE.
result.form A character string. Currently only "maximal-interaction-terms" is implemented for result.form.
omit.test Logical, if omit.test is TRUE then the resulting model is not tested against the argument model.
make.model Logical, if make.model is TRUE then a model object of the model resulting of the action is returned.
return.test Logical, if return.test is TRUE then a character string with the model resulting of the action is returned.
push.pop Logical, if push.pop is TRUE, the model argument is numeric and the object argument is a CoCoCg object then model pointers are restored by less calls of CoCoCg. See also returnModelNumber and makeCurrent.
edges A logical for difference between models. If edges is TRUE then the edges not in both models are returned.
dispose Logical, if dispose is TRUE then the model resulting of the action is in the CoCo object, and a character string with the model is returned.
data See exportCoCo.
object See exportCoCo.
... Additional arguments to generate the CoCo object from the data argument. See propertyModel.

Details

Value

The logical TRUE, a charaterstring with a generating class of a model, a model object, or a vector of numerics (as returnTest) for a test.

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.


[Package CoCoRaw version 0.1.6.8 Index]