marginalFreq | R Documentation |
A function that given a fitted singleR
class object
computed marginal frequencies by as sum of probability density functions
for each unit in data at each point i.e. kth element of marginal frequency
table is given by \mjseqn\sum_j=1^N_obs\mathbbP(Y_j=k|\eta_j).
For k=0 only (if specified at call) they are computed as
\mjseqn\hatN-N_obs because
\mjseqn\boldsymbolf_0 is assumed to
the unobserved part of the studied population.
These frequencies are useful in diagnostics for count data regression, such as assessment of fit.
marginalFreq(
object,
includeones = TRUE,
includezeros = TRUE,
onecount = NULL,
range,
...
)
object |
object of |
includeones |
logical value indicating whether to include the estimated number of zero counts. |
includezeros |
logical value indicating whether to include one counts in the zero-one truncated models. |
onecount |
a numeric value indicating number of one counts if null |
range |
optional argument specifying range of selected Y values. |
... |
currently does nothing. |
A list with observed name of the fitted model family degrees of freedom and observed and fitted marginal frequencies.
Piotr Chlebicki \loadmathjax
estimatePopsize()
– where example of usage is provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.