bwcontrol: Control Parameters for Baum Welch Algorithm

Description Usage Arguments Examples

View source: R/bwcontrol.R

Description

Creates a list of parameters that control the operation of BaumWelch.

Usage

1
2
bwcontrol(maxiter = 500, tol = 1e-05, prt = TRUE, posdiff = TRUE,
          converge = expression(diff < tol))

Arguments

maxiter

is the maximum number of iterations, default is 500.

tol

is the convergence criterion, default is 0.00001.

prt

is logical, and determines whether information is printed at each iteration; default is TRUE.

posdiff

is logical, and determines whether the iterative process stops if a negative log-likelihood difference occurs, default is TRUE.

converge

is an expression giving the convergence criterion. The default is the difference between successive values of the log-likelihood.

Examples

1
2
3
4
#    Increase the maximum number of iterations to 1000.
#    All other components will retain their default values.
a <- bwcontrol(maxiter=1000)
print(a)

HiddenMarkov documentation built on April 27, 2021, 5:06 p.m.