Description Usage Arguments Value Author(s) References See Also Examples
Creates the population (aka strata) matrix Z and the sampling constraint
matrix Z_{F} using strata and sampling constraint information found in
input variables strata
and fixed.strata
.
1 | create.Z.ZF(strata, nrowZ = length(strata), fixed.strata = "all")
|
strata |
The vector that gives the stratum membership identifier. |
nrowZ |
Number of rows of the to-be-created population (aka strata) matrix Z. |
fixed.strata |
The object that gives information on which stratum have
fixed sample sizes. It can equal one of the keywords,
|
create.Z.ZF
returns a list, which includes the following two objects:
Z |
Population (aka strata) matrix. |
ZF |
Sampling constraint matrix. |
Joseph B. Lang
Lang, J. B. (2004) Multinomial-Poisson homogeneous models for contingency tables, Annals of Statistics, 32, 340–383.
1 2 3 | create.Z.ZF(c(1, 1, 2, 3, 3), fixed.strata = "all")
create.Z.ZF(c(1, 1, 2, 3, 3), fixed.strata = "none")
create.Z.ZF(c(1, 1, 2, 3, 3), fixed.strata = c(1, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.