make_ctables: Distribute counts along tree

View source: R/1-base-model-function.R

make_ctablesR Documentation

Distribute counts along tree

Description

Create the list of ftables storing the observations distributed along the path of the tree.

Usage

make_ctables(object, data)

Arguments

object

A stratified event tree, a list with a tree field.

data

table or data.frame containing observations of the variable in object.

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 ftables.


stagedtrees documentation built on April 29, 2022, 1:06 a.m.