meanDifferences | R Documentation |
Compute the differences between the estimated and the observed continuity corrected logarithms of the average count values (MD), and between the estimated average probability to observe a zero and the the observed zero rate (ZPD).
meanDifferences(estimated, observed)
estimated |
a two column data.frame, output of |
observed |
a two column data.frame, output of
|
a data.frame
containing the differences between the estimated
and the observed continuity corrected logarithms of the average count values
in the MD
column, and between the estimated average probability to
observe a zero and the the observed zero rate in the ZPD
column.
prepareObserved
.
# Randomly generate the observed and estimated data.frames
observed <- data.frame(Y = rpois(10, 5), Y0 = runif(10, 0, 1))
estimated <- data.frame(Y = rpois(10, 5), Y0 = runif(10, 0, 1))
# Compute the mean differences between estimated and observed data.frames
meanDifferences(estimated, observed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.