update.rcox {gRc}R Documentation

Update an RCOX model

Description

update will update and (by default) re-fit an RCOX model.

Usage

## S3 method for class 'rcox':
update(object, vcc = NULL, ecc = NULL, splitecc = NULL,
splitvcc = NULL, joinvcc = NULL, joinecc = NULL, addecc = NULL, dropecc
= NULL, Kstart = NULL, fit = TRUE, control=NULL, trace = object$trace, ...)

Arguments

object An RCOX model, an object of class RCOX
vcc Specification of the vertex colour classes in the model
ecc Specification of the edge colour classes in the model
splitvcc Existing vertex colour class to be split
splitecc Existing edge colour class to be split
joinvcc Existing vertex colour classes to be joined
joinecc Existing vertex colour classes to be joined
addecc New edge colour classes to be added
dropecc Existing vertex color classes to be dropped (deleted)
Kstart A start value for K
fit Should the updated model be fitted.
control A list of control parameters.
trace For debugging purposes
... Additional arguments, currently not used.

Value

A new model object of class 'rcox'.

Warning

Only one of the arguments pertaining to edge colour classes (i.e. ecc, splitecc, joinecc, dropecc, addecc) should be applied at the time. Likewise for the arguments pertaining to the vertex colour classes.

The result will otherwise be highly unpredictable and is likely to cause an error.

Author(s)

Søren Højsgaard, sorenh@agrsci.dk

See Also

rcox

Examples


data(math)
gm  = ~al:an:st
vcc = list(~me+st, ~ve+an, ~al)
ecc = list(~me:ve+me:al, ~ve:al+al:st)

m1 <- rcox(gm=gm, vcc=vcc, ecc=ecc, data=math, method='matching', trace=0)

update(m1, joinvcc=list(~me+st, ~ve+an))
update(m1, joinecc=list(~al:an, ~an:st))

update(m1, splitvcc=~ve+an)
update(m1, splitecc=~me:ve+me:al)

update(m1, dropecc=list(~me:st+st:an,~al:an,~st:al))
update(m1, addecc=list(~an:me+st:ve))


[Package gRc version 0.2.2 Index]