Learn R Programming

VLMC (version 1.4-4)

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 vlmc
summary(object, ...)
# S3 method for summary.vlmc
print(x, digits = getOption("digits"),
         vvec.printing = FALSE, ...)

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.table

the symmetric contingency table of data vs fitted.

depth.stats

statistics of Markov chain depth along the data; currently just summary(predict(object, type="depth")).

R2

the \(R^2\) statistic, i.e. the percentage (in [0,1]) of correctly predicted data.

Arguments

object

an R object of class vlmc.

x

an R object 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].

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