Decomposition using a prcalc object with two-step.

Description

Decomposition using a prcalc object with two-step.

Usage

decompose2(x, alpha = 2, ...)

decompose2(x, alpha = 2, ...)

Arguments

x a prcalc object.
alpha Default is 2 and it must be larger than 0.
ignored

Value

a prcalc_decomposition object.

References

  • Yuta, Kamahara. "The Desired Political Entropy as the Measure of Unequal Representation: Disproportionality and Malapportionment". Working paper.

See Also

decompose, decompose3

Examples

library(PRcalc)

# Using a prcalc object
data(jp_lower_2021)

obj <- prcalc(jp_lower_2021,
              m = c(8, 14, 20, 21, 17, 11, 21, 30, 11, 6, 21),
              method = "hare")

decompose2(obj)
alpha = 2 
alpha-divergence  Reapportionment    Redistricting 
      0.03952282       0.00324211       0.03628070 

Note: "alha-divergence" is sum of "Reapportionment" and "Redisticting" terms.