Description Usage Arguments Value Author(s) References Examples
View source: R/APFAfunctions.R
Calculates various quantities in connection with merging two nodes in a level of a sample tree.
1  merge2nodes(NS, mnode, test = TRUE, get.map = FALSE, doMerge = FALSE)

NS 

mnode 

test 
If 
get.map 
If 
doMerge 
If 
A list of computed quantities
mmat 
An integer matrix containing the nodes to be merged (the original and the induced). 
map 
A integer vector of length vcount(G)) containing the vertex ids of the vertices after merging 
devtest 
A numeric vector of length two containg the degrees of freedom and deviance associated with the merging 
NS 
A node by symbol array representing the result of the merging 
Smitha Ankinakatte and David Edwards
Ankinakatte, S. and Edwards, D. (2014?) Modelling discrete longitudinal data using acyclic probabilistic finite automata. Submitted to C.S.D.A.
1 2 3 4 5 6  library(gRapfa)
data(Wheeze)
G < st(Wheeze)
G.c < contract.last.level(G)
NS < apfa2NS(G.c)
n2n < merge2nodes(NS, c(5,3))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.