DemocracyIncome25 {pder} | R Documentation |
The Relation Between Democraty and Income
Description
25-yearly observations of 25 countries from 1850 to 2000
number of observations : 175
number of time-series : 7
country : world
package : panel
JEL codes: D72, O47
Chapter : 02, 07
Usage
data(DemocracyIncome25)
Format
A dataframe containing:
- country
country
- year
the starting year of the 5-years period
- democracy
democracy index
- income
the log of the gdp per capita
Source
American Economic Association Data Archive : https://www.aeaweb.org/aer/
References
Daron Acemoglu, Simon Johnson, James A. Robinson and Pierre Yared (2008) “Income and Democracy”, American Economic Review, 98(3), 808-842, doi: 10.1257/aer.98.3.808 .
Examples
#### Example 2-7
## ------------------------------------------------------------------------
library("plm")
data("DemocracyIncome25", package = "pder")
DI <- pdata.frame(DemocracyIncome25)
summary(lag(DI$income))
ercomp(democracy ~ lag(income), DI)
models <- c("within", "random", "pooling", "between")
sapply(models, function(x)
coef(plm(democracy ~ lag(income), DI, model = x))["lag(income)"])
#### Example 7-6
## ------------------------------------------------------------------------
data("DemocracyIncome25", package = "pder")
pdim(DemocracyIncome25)
## ------------------------------------------------------------------------
diff25 <- pgmm(democracy ~ lag(democracy) + lag(income) |
lag(democracy, 2:99) + lag(income, 2:99),
DemocracyIncome25, model = "twosteps")
## ------------------------------------------------------------------------
diff25lim <- pgmm(democracy ~ lag(democracy) + lag(income) |
lag(democracy, 2:4)+ lag(income, 2:4),
DemocracyIncome25, index=c("country", "year"),
model="twosteps", effect="twoways", subset = sample == 1)
diff25coll <- pgmm(democracy ~ lag(democracy) + lag(income) |
lag(democracy, 2:99)+ lag(income, 2:99),
DemocracyIncome25, index=c("country", "year"),
model="twosteps", effect="twoways", subset = sample == 1,
collapse = TRUE)
sapply(list(diff25, diff25lim, diff25coll), function(x) coef(x)[1:2])
#### Example 7-9
## ------------------------------------------------------------------------
sapply(list(diff25, diff25lim, diff25coll),
function(x) sargan(x)[["p.value"]])
[Package pder version 1.0-2 Index]