Model Editing {gRcox}R Documentation

Editing of RCOX models

Description

Functions for editing (i.e. modifying) RCOX models.

Usage

joinVCC(cc, m,  fit = TRUE)
joinECC(cc, m,  fit = TRUE)
joinCC(cc, m, type = "ecc", fit = TRUE)
splitVCC(cc, m, fit = TRUE)
splitECC(cc, m, fit = TRUE)
splitCC(cc, m, type = "ecc", fit = TRUE) 
addECC(cc, m, fit = TRUE)
dropECC(cc, m, fit = TRUE)

Arguments

cc A colour class
m An RCOX model
type Either 'vcc' for vertex colour class or 'ecc' for edge colour class
fit If FALSE the new model is not fitted.

Details

splitVCC and splitECC are simply wrappers for splitCC and likewise for joinVCC, joinECC and joinCC.

Value

An RCOX model object.

Author(s)

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

Examples

data(math)
bufly1  <- rcox(~al:an:st, vcc=list(~me+st, ~ve+an), 
                ecc=list(~me:ve+me:al, ~ve:al+al:st),
                data=math)

joinVCC(list(~me+st, ~ve+an), bufly1)
joinECC(list(~al:an, ~an:st), bufly1)
splitCC(~ve+an,bufly1,type='vcc')
splitCC(~me:ve+me:al,bufly1,type='ecc')
splitVCC(~ve+an, bufly1)
splitECC(~me:ve+me:al, bufly1)
addECC(~me:an+ve:st,bufly1)
dropECC(~me:ve+me:al,bufly1)

[Package gRcox version 0.1 Index]