Description Usage Format Source References Examples
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
1 |
A dataframe containing:
country
the starting year of the 5-years period
democracy index
the log of the gdp per capita
American Economic Association Data Archive : https://www.aeaweb.org/aer/
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 .
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 31 32 33 34 35 36 37 38 39 40 41 | #### 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"]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.