Description Usage Arguments Value See Also Examples
Probabilities estimated in the crlmm
package are often
stored as integers to save memory. We provide a few utility
functions to go back and forth between the probability and
integer representations.
1 2 |
i |
A matrix or vector of integers. |
p |
A matrix or vector of probabilities. |
The value returned by i2p
is
1 - exp(-i/1000)
The value returned by 2pi
is
as.integer(-1000*log(1-p))
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.