The probability arguments--pA
, pB
, pC
, and pD
--are named as in a two-way contingency table. They cannot be negative, although rmanaclash
accepts values of zero for pA
, pB
, and pC
. If they do not sum to 1, they are automatically normalized. They default to the scenario of two independent fair coins.
Vectors of numeric arguments other than rel.eps
are cycled, whereas only the first element of logical and integer arguments is used.
Function dmanaclash.dmg()
is the bivariate PMF of the amount of damage dealt to opponent and you. If N = NULL
(default), the probabilities are marginal with respect to the number of rounds of damage-dealing. Otherwise, the probabilities are conditioned upon the given value of N
.
Function dmanaclash.xyN()
is the trivariate joint PMF of the amount of damage dealt to opponent, the amount dealt to you, and the number of rounds of damage-dealing.
Function dmanaclash.net
is the univariate PMF of the net amount of damage dealt to opponent, i.e. damage dealt to opponent minus damage dealt to you. This distribution has support on the set of integers--including negative values.
Function rmanaclash()
generates random draws from the trivariate joint distribution of \(x\), \(y\), and \(N\); if a non-NULL
value for N
is supplied, the random draws are generated conditionally on that number of damage-dealing rounds.