get_maxK: Maximum number of transitions given occupation time, total...

View source: R/auxiliary_functions.R

get_maxKR Documentation

Maximum number of transitions given occupation time, total iterations and initial state.

Description

Maximum number of transitions given occupation time, total iterations and initial state.

Usage

get_maxK(Sx, M, X0 = "0")

Arguments

Sx

the sum of 1's in M samples.

M

number of samples.

X0

initial state. Either X0 == "0" or X0 == "1".

Value

maximum possible number of state-transitions (changes).

Examples

get_maxK(Sx = 3, M = 10) # should be 6

maxbiostat/BinaryMarkovChains documentation built on Dec. 11, 2023, 4:29 a.m.