Description Usage Arguments Value Note Examples
Constructor method to Stratified.staged.tree S4 objects. It accepts different sets for parameters types.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | Stratified.staged.tree(x, y, z, ...)
## S4 method for signature 'missing,ANY,ANY'
Stratified.staged.tree(x, y, z, ...)
## S4 method for signature 'ANY,ANY,ANY'
Stratified.staged.tree(x, y, z, ...)
## S4 method for signature 'data.frame,numeric,numeric'
Stratified.staged.tree(x = "data.frame",
y = 1L, z = 0L)
## S4 method for signature 'data.frame,numeric,missing'
Stratified.staged.tree(x = "data.frame",
y = 1L)
## S4 method for signature 'data.frame,missing,missing'
Stratified.staged.tree(x = "data.frame")
## S4 method for signature 'Stratified.event.tree,list,ANY'
Stratified.staged.tree(x = "Stratified.event.tree",
y = "list")
|
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) |
a Stratified.staged.tree S4 object
The implementation admits providing the three arguments, or the first two, or
even only the data.frame.
The default variable order is as in the data.frame and the default alpha is
1L.
To manualy create a stratified.event.tree from a stratified.event.tree:
plot the stratified.event.tree - plot(set)
Looking the graph, you can create the stage structure,
such as: stage.structure <- list(list(c(2,3)), list(c(4,7,12),c(5,8,9)))
Finally you can create your Stratified.event.tree:
st.manual<- Stratified.staged.tree(set, stage.structure)
A call to Stratified.staged.tree( )
with no parameters will return
an error message for missing argument.
A call to Stratified.staged.tree(x, ...)
, x not being a data.frame or
a Event.tree, will return an error message.
1 2 3 4 | 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))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.