decompose3 | R Documentation |
prcalc
object with three-step.Decomposition using a prcalc
object with three-step.
decompose3(x, ...)
## S3 method for class 'prcalc'
decompose3(x, special = NULL, alpha = 2, ...)
x |
a |
... |
ignored |
special |
a character. names of special district. |
alpha |
Default is |
a prcalc_decomposition
object.
Yuta, Kamahara, Junichiro Wada, and Yuko Kasuya. 2021. "Malapportionment in space and time: Decompose it!" Electoral Studies. 71: 102301.
decompose
, decompose2
decompose
data(nz_district)
nz_1949 <- nz_district |>
subset(year == 1949) |>
as_prcalc(l1 = "region",
l2 = "district",
p = "electorates",
q = "magnitude",
type = "nested")
decompose3(nz_1949, special = "Maori")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.