Add Markov states to a gmod

states(names, init_probs, max_cycle_in_states = NULL)

Arguments

...

Markov state names

Value

a gmod layer with Markov state names

Examples

states("Healthy", "Sick", "Dead")
#> [[1]]
#> [[1]]$type
#> [1] "states"
#> 
#> [[1]]$states
#> [1] "Healthy"
#> 
#> 
#> [[2]]
#> [[2]]$type
#> [1] "initial_prob"
#> 
#> [[2]]$states
#> [1] "Healthy"
#> 
#> [[2]]$probs
#> [1] "Sick"
#> 
#> 
#> [[3]]
#> [[3]]$type
#> [1] "tunnels"
#> 
#> [[3]]$states
#> [1] "Healthy"
#> 
#> [[3]]$lengths
#> [1] "Dead"
#> 
#>