redist.plot.penalty: Visualize VRA Penalty
Description
Plots the shape of the VRA Gibbs penalty.
Usage
redist.plot.penalty(
tgt_min = 0.55,
tgt_other = 0.25,
strength_vra = 2500,
pow_vra = 1.5,
limits = TRUE
)
Arguments
tgt_min
double, defaults to 0.55. The minority target percent.
tgt_other
double, defaults to 0.25. The other group target percent.
strength_vra
double, strength of the VRA constraint.
pow_vra
double, exponent of the VRA constraint.
limits
Whether to limit y axis to 0,500. Default is TRUE for
comparability across values.
Details
This function allows you to plot the un-exponentiated VRA Gibbs penalty implemented as
`vra` within MCMC, Merge-Split, and SMC. The function takes two key inputs,
`tgt_min` and `tgt_other` which center the minimum penalty spots. A higher y-value
indicates a higher penalty and incentivizes moving towards a spot with a lower y-value.
The x-axis indicates the group population proportion in a given district. The default
indicates the default settings within redist_smc()
.
Examples
Run this code# NOT RUN {
redist.plot.penalty()
# }
Run the code above in your browser using DataLab