Functions to convert probabilities to integers, or integers to probabilities.
职能转换整数或整数,以概率的概率。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
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.
通常存储在crlmm包估计的概率为整数,以节省内存。我们提供了一些实用功能之间来回的概率和整数表示。
用法----------Usage----------
i2p(i)
p2i(p)
参数----------Arguments----------
参数:i
A matrix or vector of integers.
整数矩阵或向量。
参数:p
A matrix or vector of probabilities.
概率矩阵或向量。