enterQtable {CoCoRaw} | R Documentation |
Enter a Q-table or Q-list: Initial values for the IPS-algorithm and the cells of a table to be zero by structure.
enterQtable(set, table, setslot = TRUE, data = NULL, object = .object.of.thing(data = data, ...), ...) enterQlist(set, list, setslot = TRUE, data = NULL, object = .object.of.thing(data = data, ...), ...)
set |
A character string giving the set of variables
of the table. |
table |
A vector of integers, one for each cells
of the table formed by the cross classification
of the variables of set . |
list |
A vector of integers, a list of cells of the
table formed by the cross classification of the
variables of set . |
setslot |
See enterNames . |
data |
See exportCoCo . |
object |
See exportCoCo . |
... |
Additional arguments to generate the CoCo object
from the data argument. See propertyModel . |
Cells equal to zero are by structure zero.
enterQlist
will enter these cells.
TRUE
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.
library(CoCo); without <- makeCoCo(title = "Without structural zero"); optionsCoCo(digits.table = 6, decimals.table.probabilities = 2, decimals.table.expected = 1, decimals.table.residual = 1); enterNames("smv", rep(2, 3)); n <- c(11, 2209, 0, 111, 48, 239, 72, 2074); enterTable(n); A.1 <- make.model("*"); A.2 <- make.model("mv,vs"); showTest(); endCoCo(); with <- makeCoCo(title = "With structural zero"); optionsCoCo(digits.table = 6, decimals.table.probabilities = 2, decimals.table.expected = 1, decimals.table.residual = 1); enterNames("smv", rep(2, 3)); n <- c(11, 2209, -1, 111, 48, 239, 72, 2074); enterTable(n); returnTable("zero"); B.1 <- make.model("*"); B.2 <- make.model("mv,vs"); showTest(); endCoCo();