R arm of morie.fn.sntmn: shares of cases sentenced at, below and
above the applicable mandatory minimum and the mean excess over the minimum,
overall and by offense.
Usage
Sntmn(
df,
offense_col = "offense",
sentence_col = "sentence_days",
min_col = "mandatory_min_days"
)
Arguments
- df
Data frame or list with the three columns.
- offense_col, sentence_col, min_col
Column names.
Value
A named list (the Python result's fields).
References
United States Sentencing Commission (2017). Mandatory Minimum Penalties in the Federal Criminal Justice System. Washington, DC.
Examples
Sntmn(list(offense = c("a", "a", "b"), sentence_days = c(60, 90, 30),
mandatory_min_days = c(60, 60, 60)))$value
#> [1] 0.3333333