## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ forcats   1.0.0     ✔ readr     2.1.4
## ✔ ggplot2   3.5.1     ✔ stringr   1.5.1
## ✔ lubridate 1.9.2     ✔ tibble    3.2.1
## ✔ purrr     1.0.4     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## Rows: 11898 Columns: 384
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr    (9): v2paenname, v2paorname, v2pashname, party_gaps, pf_url, country_...
## dbl  (374): v2paid, pf_party_id, country_id, year, codingstart, gapstart, ga...
## date   (1): historical_date
## 
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.

## # A tibble: 4 × 3
##   step                      remaining  lost
##   <chr>                         <int> <dbl>
## 1 total                         11898     0
## 2 remaining_after_regime        11685   213
## 3 remaining_after_osp            6192  5493
## 4 remaining_after_incumbent      6065   127
## `geom_smooth()` using formula = 'y ~ x'

## `geom_smooth()` using formula = 'y ~ x'

## `geom_smooth()` using formula = 'y ~ x'

## `geom_smooth()` using formula = 'y ~ x'

## `geom_smooth()` using formula = 'y ~ x'

## `geom_smooth()` using formula = 'y ~ x'

## 
## Attaching package: 'kableExtra'
## 
## The following object is masked from 'package:dplyr':
## 
##     group_rows
Mean, Median, and SD of Condoning Violence (Ordinal Flipped) by Party Status and Regime Type
Regime Type Party Status Mean Median SD N
Electoral autocracy Incumbent 1.73 1 1.20 1017
Electoral autocracy Opposition 1.10 1 0.95 810
Electoral democracy Incumbent 0.92 1 0.98 780
Electoral democracy Opposition 0.89 1 0.93 908
Mean, Median, and SD of Condoning Violence (Ordinal Flipped) by Party Status and Regime Type (Democracy vs Electoral Autocracy)
Regime Type Party Status Mean Median SD N
Democracy Incumbent 0.46 0 0.81 1748
Democracy Opposition 0.50 0 0.81 2032
Electoral autocracy Incumbent 1.73 1 1.20 1017
Electoral autocracy Opposition 1.10 1 0.95 810
Percentage Distribution of Condoning Violence (Ordinal Flipped) by Party Status and Regime Type
Regime Type Party Status Consistently Encourages Sometimes Encourages Neutral / Mixed Generally Discourages Consistently Discourages
Closed autocracy Incumbent 17.6 40.1 15.2 18.5 8.5
Closed autocracy Opposition 2.3 9.3 10.1 41.1 37.2
Electoral autocracy Incumbent 7.5 23.8 18.6 34.4 15.7
Electoral autocracy Opposition 1.7 8.1 15.8 47.5 26.8
Electoral democracy Incumbent 2.1 5.8 14.9 36.8 40.5
Electoral democracy Opposition 1.1 6.1 13.5 39.4 39.9
Liberal democracy Incumbent 0.0 0.3 0.6 7.2 91.8
Liberal democracy Opposition 0.2 1.0 1.6 11.6 85.7
Percentage Distribution of Condoning Violence (Ordinal Flipped) with Total Count by Party Status and Regime Type
regime_label incumbent_status n perc_Consistently_Encourages perc_Sometimes_Encourages perc_Neutral_Mixed perc_Generally_Discourages perc_Consistently_Discourages
Closed autocracy Incumbent 329 17.6 40.1 15.2 18.5 8.5
Closed autocracy Opposition 129 2.3 9.3 10.1 41.1 37.2
Electoral autocracy Incumbent 1017 7.5 23.8 18.6 34.4 15.7
Electoral autocracy Opposition 810 1.7 8.1 15.8 47.5 26.8
Electoral democracy Incumbent 780 2.1 5.8 14.9 36.8 40.5
Electoral democracy Opposition 908 1.1 6.1 13.5 39.4 39.9
Liberal democracy Incumbent 968 0.0 0.3 0.6 7.2 91.8
Liberal democracy Opposition 1124 0.2 1.0 1.6 11.6 85.7