Description Usage Arguments Details Value Note Author(s) References Examples
View source: R/APFAfunctions.R
Builds the sample tree of a discrete longitudinal dataset.
1 | st(iD)
|
iD |
|
Sample trees are constructed as follows. Suppose $N$ observations pf $p$ discrete variables $(x_1, ..., x_p)$ are given. Starting with $N$ observations at the root node, edges branches out to nodes at the first level. The number of branches corresponds to number of distinct values of $x_1$, and the count on each edge correspond to the frequency of occurrence of the respective value. From each node at level one, edges branch out to level two, based on the distinct values of $x_2$ given $x_1$. The process continues up to level $p$.
An igraph object containing the sample tree.
further notes
Smitha Ankinakatte
Ankinakatte, S. and Edwards, D. Modelling discrete longitudinal data using acyclic probabilistic finite automata. Submitted to C.S.D.A.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.