summary: Summary of variable length Markov chain model

Description Usage Arguments Value Author(s) Examples

Description

Summary of a variable length Markov chain model stored in a probabilistic suffix tree.

Usage

1
2
## S4 method for signature 'PSTf'
summary(object, max.level)

Arguments

object

A PST, that is an object of class PSTf as returned by the pstree or prune method.

max.level

integer. If specified, the summary is computed for the max.level levels of the tree only.

Value

An object of class PST.summary with following attributes:

alphabet

list of symbols in the alphabet

labels

long labels for symbols in the alphabet

cpal

color palette used to represent each state of the alphabet

ns

number of symbols in the data to which the model was fitted

depth

maximum depth (order) of the tree

nodes

number of internal nodes in the PST

leaves

number of leaves in the PST

freepar

number of free parameters in the mode, i.e., (nodes+leaves)*(|A|-1) where |A| is the size of the alphabet

A show method is available for displaying objects of class PST.summary.

Author(s)

Alexis Gabadinho

Examples

1
2
3
4
5
data(s1)
s1.seq <- seqdef(s1)
S1 <- pstree(s1.seq, L=3)
summary(S1)
summary(S1, max.level=2)

PST documentation built on Nov. 25, 2020, 3 p.m.

Related to summary in PST...