Description Usage Arguments Value Examples
Probability that a country-year is more democratic than another
1 2 3 |
data |
A UD dataset with a country_name, year, latent variable mean and latent variable standard deviation columns at least. Little sanity checking is performed - careful! |
country1 |
The first country to compare. |
country2 |
The second country to compare. Can be the same as
|
years |
Either a single year, or a length 2 vector of years. |
mean_col |
The name of the column that contains the mean of the latent
variable (defaults to |
sd_col |
The name of the column that contains the standard error of the
latent variable (defaults to |
country_col |
The name of the column that contains the country name
(defaults to |
year_col |
The name of the column that contains the years (defaults to
|
The probability that the first country-year in the comparison is more democratic than the second.
1 2 3 4 5 6 7 8 9 10 11 12 | # Probability that the USA in 2000 was more democratic than Brazil in 2000,
# according to 2010 release of UDS
prob_more(uds_2010, "United States of America","Brazil",
2000, mean_col="mean", sd_col="sd")
# Probability that Brazil in 1980 was more democratic than the USA in 1980,
# according to 2010 release of UDS
prob_more(uds_2010, "Brazil","United States of America",
1980, mean_col="mean", sd_col="sd")
# Probability that the USA in 2000 was more democratic than the USA in 1950,
# according to 2010 release of UDS
prob_more(uds_2010, "United States of America","United States of America",
years = c(2000,1950), mean_col="mean", sd_col="sd")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.