returnModelVariates {CoCoRaw}R Documentation

Return the variates of the model

Description

Return the variables of the model.

Usage

returnModelVariates(model = FALSE, as.string = TRUE, data = NULL,
                    object = .object.of.model(model, data = data, ...), ...)

Arguments

model See returnModel.
as.string Logical, if as.string is false then a vector of integers is returned. 1 (0) for variables (not) in the model.
data ( See exportCoCo. )
object See exportCoCo.
... ( Additional arguments to generate the CoCo object from the data argument. See propertyModel. )

Value

A character string with the variates of the model, or a vector of integers, 1 (0) for variables (not) in the model.

Author(s)

Jens Henrik Badsberg

References

Badsberg, J.H.: Xlisp+CoCo, Aalborg University, 1996.

See Also

returnModel.

Examples

library(CoCoCg);

data(Rats);
CoCoObject <- makeCoCoCg();
enterDataFrame(Rats, object = CoCoObject);
fullModel <- makeModel(enterModel("*", object = CoCoObject));

enterModel("ab,by", object = CoCoObject);
enterModel("bx", object = CoCoObject);

returnModelVariates(1, object = CoCoObject);
returnModelVariates(object = CoCoObject);

returnModelVariates(1, as.string = FALSE, object = CoCoObject);
returnModelVariates(as.string = FALSE, object = CoCoObject);
returnModelVariates(3, as.string = FALSE, object = CoCoObject);

returnModelVariates("by", as.string = FALSE, object = CoCoObject);

endCoCo(object = CoCoObject);


[Package CoCoRaw version 0.1.6.5 Index]