# A tibble: 2 × 3
term estimate p.value
<chr> <dbl> <dbl>
1 (Intercept) 0.365 1.47e- 2
2 wbgdppc2011est 0.700 2.31e-12
August 24, 2026
\[\log\left(\frac{p}{1-p}\right) = -1.16-0.33\times \text{logGDPpc}\]
\[\log\left(\frac{p}{1-p}\right) = -1.16-0.33\times \text{logGDPpc}\]
For each one unit increase in log GDP per capita, the odds of conflict onset are multiplied by approximately 0.718, assuming other variables are held constant.
This means that an increase in GDP per capita is associated with a decrease in the odds of conflict onset. The odds decrease by about 28.2% for each unit increase in log GDP per capita.
v2x_polyarchy, ethfrac)tidy(..., exponentiate = TRUE) to get the odds ratiosProbability of conflict onset for a country with log GDP per capita of 9 (about $8,000):
\[\log\left(\frac{p}{1-p}\right) = -1.16-0.33\times 9 = -4.13\]
\[\frac{p}{1-p} = \exp(-4.13) = 0.016\]
\[p = \frac{0.016}{1 + 0.016} = 0.0158\]
marginaleffectslibrary(marginaleffects)
# select some countries for a given year
selected_countries <- conflict_df |>
filter(
gw_name %in% c("United States of America", "Venezuela", "Rwanda"),
year == 1999)
# calculate predicted probabilities
marg_effects <- predictions(conflict_model, newdata = selected_countries)
tidy(marg_effects) |>
select(estimate, p.value, conf.low, conf.high, gw_name)marginaleffects# A tibble: 5 × 5
wbgdppc2011est estimate conf.low conf.high GDP_approx
<dbl> <dbl> <dbl> <dbl> <chr>
1 6 0.0411 0.0322 0.0525 ~$403
2 7 0.0291 0.0242 0.0351 ~$1097
3 8 0.0206 0.0175 0.0242 ~$2981
4 9 0.0145 0.0119 0.0176 ~$8103
5 10 0.0102 0.00784 0.0132 ~$22026
marginaleffects package