propertySet {CoCoRaw}R Documentation

Ask a query for a set of variables

Description

Test a query for a subset of the variables of a model.

Usage

propertySet(query = "in.one.clique", set = "", set.a = "", set.b = "", 
            model = FALSE, prior.action = NULL, 
            modification = NULL, data = NULL, 
            object = .object.of.model(model, data = data, ...), ...)

Arguments

query A character string with the query: "is.separator", "is.d-separator", or "in.one.clique".
set A character string: Test whether set is in one and only one clique or a separator according to the argument query.
set.a A character string: If query is "is.separator" or "is.d-separator" and set.a and set.b are given, then it is tested whether set separates set.a and set.b in the model.
set.b A character string: See argument set.a.
model See returnModel.
prior.action A character string, if prior.action is set, then the model is modified by this action before asking the query. See editModel.
modification See editModel.
data See exportCoCo.
object See exportCoCo.
... Additional arguments to generate the CoCo object from the data argument. See propertyModel.

Details

Value

Logical

Author(s)

Jens Henrik Badsberg

See Also

propertyModel.

Examples

library(CoCo);

data(Fuchs82);

CoCoObject <- makeCoCo();
enterTable(Fuchs82, object = CoCoObject);

enterModel("mdp,da,am,dg,gs,sa", object = CoCoObject);

propertySet("in.one.clique", set = "d,m.", object = CoCoObject);

propertySet(query = "separator", set = "ds.",  object = CoCoObject);
propertySet(query = "separator", set = "a.",   object = CoCoObject);
propertySet(query = "separator", set = "ag.",  object = CoCoObject);
propertySet(query = "separator", set = "adm.", object = CoCoObject);
propertySet(query = "separator", set = "am.",  object = CoCoObject);
propertySet(query = "separator", set = "dm.",  object = CoCoObject);

returnSets(model = FALSE, type = "is.separator", set = "dm.",
           object = CoCoObject); 

propertySet(query = "separator", set = "d.", 
            set.a = "dpm", set.b = "gsa", object = CoCoObject);
propertySet(query = "separator", set = "da.",
            set.a = "dpm", set.b = "gs",  object = CoCoObject);
propertySet(query = "separator", set = "da.",
            set.a = "dpm", set.b = "gsa", object = CoCoObject);
propertySet(query = "separator", set = "dm.",
            set.a = "dpm", set.b = "gsa", object = CoCoObject);
propertySet(query = "separator", set = "ds.", set.a = "dpm", set.b = "ga");

enterModel("gasd,adm,dpm.;", object = CoCoObject);

propertySet("in.one.clique", set = "d,s.", object = CoCoObject);
propertySet("in.one.clique", set = "d,m.", object = CoCoObject);
propertySet("in.one.clique", set = "s,p.", object = CoCoObject);

endCoCo(CoCoObject);

[Package Contents]