make_ctables {stagedtrees} | R Documentation |
Distribute counts along tree
Description
Create the list of ftable
s
storing the observations distributed along
the path of the tree.
Usage
make_ctables(object, data, useNA = "ifany")
Arguments
object |
A stratified event tree, a list with a |
data |
table or data.frame containing observations
of the variable in |
useNA |
whether to include NA values in the tables.
Argument passed to |
Details
Distribute the counts along the event tree.
This is an internal function, the user will
usually just directly fit the staged event tree
model using sevt.fit
.
We refer here to stratified event tree, because actually
the stage information is never used and thus this function
will work for an object with only a tree
field.
Value
A list of ftable
s.
[Package stagedtrees version 2.3.0 Index]