Learn R Programming

ceg (version 0.1.0)

Stratified.staged.tree: Stratified.staged.tree

Description

Constructor method to Stratified.staged.tree S4 objects. It accepts different sets for parameters types.

Usage

Stratified.staged.tree(x, y, z, ...)

# S4 method for missing,ANY,ANY Stratified.staged.tree(x, y, z, ...)

# S4 method for ANY,ANY,ANY Stratified.staged.tree(x, y, z, ...)

# S4 method for data.frame,numeric,numeric Stratified.staged.tree(x = "data.frame", y = 1L, z = 0L)

# S4 method for data.frame,numeric,missing Stratified.staged.tree(x = "data.frame", y = 1L)

# S4 method for data.frame,missing,missing Stratified.staged.tree(x = "data.frame")

# S4 method for Stratified.event.tree,list,ANY Stratified.staged.tree(x = "Stratified.event.tree", y = "list")

Arguments

x

(data.frame) is a well behavioured data set or (Stratified.event.tree)

y

(numeric) alpha or (list) that represents the stage.structure. To construct it, the user must plot the Stratified.event.tree graph and use the labelled number of each node.

z

(numeric) variable.order

...

(not used)

Value

a Stratified.staged.tree S4 object

Examples

Run this code
# NOT RUN {
sst <- Stratified.staged.tree(artificial.chds)

stt.manual <- Stratified.staged.tree(set.manual,
list(list(c(2,3)), list(c(4,7,12),c(5,8,9))))

# }

Run the code above in your browser using DataLab