Description Usage Arguments Details Value Author(s) References See Also Examples

Retrieve counts or next symbol probability distribution from a node of a probabilistic suffix tree

1 2 |

`object` |
A probabilistic suffix tree, i.e an object of class |

`context` |
Character. The string labelling the node to retrieve. States must be separated by '-' as for example in 'a-a-b'. If the node labelled with this string does not exist in the tree, the node labelled with the longest suffix is searched for, and so on until an existing node is found. |

`state` |
character. If specified the probability of the specified state is returned instead of the whole distribution. |

`output` |
character. If output="prob" the probability distribution (or a single symbol distribution if state is specified) is returned. If output="counts" the counts on which the probability distribution is calculated are returned. If output="all" the node itself is returned, that is an object of class PSTr. |

`exact` |
logical. If TRUE, the information is returned only if the node labelled with context is present in the tree. That is, the longest suffix of context is not searched for if context is not in the tree. |

The PST is searched for the node labelled with `context`

. If `exact=FALSE`

, when the node does not exist the PST is searched for the longest suffix of `context`

, and so on until a node corresponding to a suffix of `context`

is found or the root node is reached. For more details, see Gabadinho 2016.

An object of class `cprobd`

, with available `round`

method.

Alexis Gabadinho

Gabadinho, A. & Ritschard, G. (2016). Analyzing State Sequences with Probabilistic Suffix Trees: The PST R Package. *Journal of Statistical Software*, **72**(3), pp. 1-39.

1 2 3 4 5 6 7 8 9 10 |

PST documentation built on May 29, 2017, 5:16 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.