update: Update an RCOX model

Description Usage Arguments Value Warning Author(s) See Also Examples

Description

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

Usage

1
2
3
4
## 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<f8>ren H<f8>jsgaard, [email protected]

See Also

rcox

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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))

gRc documentation built on May 29, 2017, 12:33 p.m.