Learn R Programming

VLMC (version 1.3-13)

summary.vlmc: Summary of Fitted Variable Length Markov Chain (VLMC)

Description

Compute (and print) a summary of a vlmc object which is typically the result of vlmc(..).

Usage

## S3 method for class 'vlmc':
summary(object, \dots)
## S3 method for class 'summary.vlmc':
print(x, digits = getOption("digits"),
         vvec.printing = FALSE, ...)

Arguments

object
an Robject of class vlmc.
x
an Robject of class summary.vlmc.
digits
integer giving the number of significant digits for printing numbers.
vvec.printing
logical indicating if the vvec component should be printed recursively via prt.vvec().
...
potentially further arguments [Generic].

Value

  • summary.vlmc() returns an object of class "summary.vlmc" for which there's a print method. It is basically a list containing all of object, plus additionally
  • confusion.tablethe symmetric contingency table of data vs fitted.
  • depth.statsstatistics of Markov chain depth along the data; currently just summary(predict(object, type="depth")).
  • R2the $R^2$ statistic, i.e. the percentage (in [0,1]) of correctly predicted data.

See Also

vlmc, draw.vlmc.

Examples

Run this code
data(bnrf1)
vb <- vlmc(bnrf1EB)
svb <- summary(vb)
svb
try(## since it currently fails (".. nested too deeply") -- FIXME -- !
  print(svb, vvec.print = TRUE)
)

Run the code above in your browser using DataLab