View source: R/ExpectedValue.R
ExpectedValue | R Documentation |
Computes the expected value from a Markov transition array
ExpectedValue(trans, rwd, r = 0, half = TRUE, verbose = FALSE)
trans |
Markov transition array generated by 'CalculateMarkovTrace' function |
rwd |
Matrix or array with state rewards (diagonal) and transition rewards |
r |
Discount factor in the scale of a cycle [0, 1]; default = 0 |
half |
If TRUE apply Half cycle correction. Defaults to TRUE |
verbose |
If TRUE messages are printed. Defaults to FALSE |
exp.value Expected value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.