Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

summary

Summary of Hidden Markov Model


Description

Provides methods for the generic function summary.

Usage

## S3 method for class 'dthmm'
summary(object, ...)
## S3 method for class 'mmglm0'
summary(object, ...)
## S3 method for class 'mmglm1'
summary(object, ...)
## S3 method for class 'mmglmlong1'
summary(object, ...)
## S3 method for class 'mmpp'
summary(object, ...)

Arguments

object

an object with class "dthmm", "mmglm0", "mmglm1", "mmglmlong1" or "mmpp".

...

other arguments.

Details

The code for the methods "dthmm", "mmglm0", "mmglm1","mmglmlong1" and "mmpp" can be viewed by appending summary.dthmm, summary.mmglm0, summary.mmglm1, summary.mmglmlong1 or summary.mmpp, respectively, to HiddenMarkov:::, on the R command line; e.g. HiddenMarkov:::dthmm. The three colons are needed because these method functions are not in the exported NAMESPACE.

Value

A list object with a reduced number of components, mainly the parameter values.

Examples

Pi <- matrix(c(0.8, 0.2,
               0.3, 0.7),
             byrow=TRUE, nrow=2)

x <- dthmm(NULL, Pi, c(0, 1), "beta",
           list(shape1=c(2, 6), shape2=c(6, 2)))

x <- simulate(x, nsim=2000)

print(summary(x))

HiddenMarkov

Hidden Markov Models

v1.8-13
GPL (>= 2)
Authors
David Harte
Initial release
2021-04-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.