Description Usage Arguments Value Examples
Initializing treeHMM with given parameters
1 2 |
States |
A (2 * 1) vector with first element being discrete state value for the cases(or positive) and second element being discrete state value for the controls(or negative) for given treeHMM |
Symbols |
List containing (M * 1) vectors for discrete values of emissions(where "M" is the possible number of emissions) for each feature variable |
treemat |
Adjacent Symmetry Matrix that describes the topology of the tree |
startProbs |
(N * 1) vector containing starting probabilities for the states, where "N" is the possible number of states(Optional). Default is equally probable states |
transProbs |
(N * N) matrix containing transition probabilities for the states, where "N" is the possible number of states(Optional) |
emissionProbs |
List of (N * M) matrices containing emission probabilities for the states, for each feature variable(optional). Default is equally probable emissions |
List describing the parameters of treeHMM(pi, alpha, beta)
1 2 3 4 5 | tmat = matrix(c(0,0,1,0,0,0,0,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0),
5,5, byrow= TRUE ) #for "X" (5 nodes) shaped tree
states = c("P","N") #"P" represent cases(or positive) and "N" represent controls(or negative)
hmmA = initHMM(states,list(c("L","R")), tmat) #one feature with two discrete levels "L" and "R"
hmmB = initHMM(states, list(c("X","Y")),tmat, c(0.5,0.5), matrix(c(0.7,0.3,0.3,0.7),2,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.