Description Usage Arguments Value Examples
View source: R/datamodel-constructors.R
Create a data model where the distribution of the
reported value is a Poisson-binomial mixture.
If Y ~ binom(n, p)
and Z ~ pois(n(1-p))
then
X = Y + Z
is a Poisson-binomial mixture.
1 |
data |
A data frame, described in |
prob |
A number between 0 and 1. |
nm_series |
The name of the demographic series
that |
nm_data |
The name of the dataset. If no value
supplied, then |
An object of class "dm_poibin"
.
1 2 3 4 5 | reg_immig <- account::gl_reg_immig
reg_immig_dm <- dm_poibin(data = reg_immig,
prob = 0.95,
nm_series = "immigration")
reg_immig_dm
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.