update-doc: Update an RCOX model

update-docR Documentation

Update an RCOX model

Description

update will update and (by default) re-fit an RCOX model. It does this by extracting the call stored in the object, updating the call and (by default) evaluating that call. Sometimes it is useful to call update with only one argument, for example if the data frame has been corrected

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@math.aau.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))


gRc documentation built on April 30, 2023, 9:09 a.m.

Related to update-doc in gRc...