dssAggregate | R Documentation |
The expectation and variance of aggregated predictions is just a sum if the predictions are (conditionally) independent. This function computes the DSS for a matrix of observations and a matrix of predictions where the columns are to be summed according to a given factor.
dssAggregate(observed, pred, psi, groups)
observed |
a numeric matrix of observed counts. |
pred |
a numeric matrix of predicted counts. |
psi |
a numeric vector or matrix of overdispersion parameters such that
|
groups |
a factor variable of length |
a matrix of DSS values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.