Description Usage Format Source References Examples
yearly observations of 75 countries from 1960 to 2003
number of observations : 439
number of time-series : 16
country : world
package : panelbinomial
JEL codes: D72, E62, H62, O47
Chapter : 08
1 |
A dataframe containing:
the country
the year
TRUE
if the observation belongs to the narrow data set
one if the incumbent was reelected and zero otherwise
the change in the ratio of the government surplus to gdp in the two years preeceding the election year, relative to the two previous years
the change in the government surplus ratio to gdpin the election year, compared to the previous year
the average growth rate of real per capita gdp during the leader's current term
one for developped countries, 0 otherwise
one for a new democratic country, 0 otherwise
one for majoritarian electoral system, 0 otherwise
American Economic Association Data Archive : https://www.aeaweb.org/aer/
Adi Brender and Allan Drazen (2008) “How Do Budget Deficits and Economic Growth Affect Reelection Prospects? Evidence From a Large Panel of Countries”, American Economic Review, 98(5), 2203-2220, doi: 10.1257/aer.98.5.2203 .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #### Example 8-1
## ------------------------------------------------------------------------
## Not run:
library("plm")
data("Reelection", package = "pder")
## ------------------------------------------------------------------------
elect.l <- glm(reelect ~ ddefterm + ddefey + gdppc + dev + nd + maj,
data = Reelection, family = "binomial", subset = narrow)
l2 <- update(elect.l, family = binomial)
l3 <- update(elect.l, family = binomial())
l4 <- update(elect.l, family = binomial(link = 'logit'))
## ------------------------------------------------------------------------
elect.p <- update(elect.l, family = binomial(link = 'probit'))
## ------------------------------------------------------------------------
if (requireNamespace("pglm")){
library("pglm")
elect.pl <- pglm(reelect ~ ddefterm + ddefey + gdppc + dev + nd + maj,
Reelection, family = binomial(link = 'logit'),
subset = narrow)
elect.pp <- pglm(reelect ~ ddefterm + ddefey + gdppc + dev + nd + maj,
Reelection, family = binomial(link = 'probit'),
subset = narrow)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.