istates-set: Set the initial states

Description Usage Arguments Value See Also Examples

Description

Sets the initial distribution of states.

The length must match the number of states, and the sum of the vector must be one.

Usage

1
istates(x) <- value

Arguments

x

A HMM model.

value

A numeric vector with a probability for each state that represents the initial distribution of states.

Value

Changes the initial distribution of states in the model.

See Also

HMM, initparams, initsteady, fit

Examples

1
2
3
4
5
model <- HMMrectangle(3,3)
model <- initparams(model)
istates(model)
istates(model) <- (1:9) / sum(1:9)
istates(model)

MobilePhoneESSnetBigData/destim documentation built on Dec. 7, 2020, 7:35 p.m.