rk.XML.formula: Create XML node "formula" for RKWard plugins

View source: R/rk.XML.formula.R

rk.XML.formulaR Documentation

Create XML node "formula" for RKWard plugins

Description

If fixed or dependent are objects of class XiMpLe.node, their id will be extracted and used.

Usage

rk.XML.formula(fixed, dependent, id.name = "auto", label = "Specify model")

Arguments

fixed

The id of the varslot holding the selected fixed factors.

dependent

The id of the varslot holding the selected dependent variable.

id.name

Character string, a unique ID for this plugin element. If "auto", an ID will be generated automatically from the fixed and dependent value.

label

Character string, a text label for this plugin element.

Value

An object of class XiMpLe.node.

See Also

rk.XML.varselector, rk.XML.varslot, rk.XML.vars (a wrapper, including formula), and the Introduction to Writing Plugins for RKWard

Examples

test.varselector <- rk.XML.varselector("Select some vars")
test.varslot1 <- rk.XML.varslot("Fixed factors", source=test.varselector)
test.varslot2 <- rk.XML.varslot("Dependent variables", source=test.varselector)
test.formula <- rk.XML.formula(fixed=test.varslot1, dependent=test.varslot2)
cat(pasteXML(test.formula))

rkward-community/rkwarddev documentation built on May 9, 2022, 3:02 p.m.