View source: R/performance_metrics.R
scaled_average_transitions | R Documentation |
Scaled average state changes.
scaled_average_transitions(samples, p = NULL)
samples |
a collection of N samples from a two-state Markov chain. |
p |
(optional) marginal success probability. |
The function computes the mean number of state changes, y.hat = Sy/N
, where Sy
is
the sum of state changes and N
is the total number of iterations.
The function then returns y.hat
scaled by its maximum theoretical value given p
.
If p is not known (p = NULL
) then the sample mean, mean(samples)
is used as an estimate.
normalised number of state transitions (changes).
MC_neff
scaled_alpha
switching_ratio
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.