africa {GLMpack} | R Documentation |
Data on inflation increase in Africa
Description
Data for the Africa example used in chapter 7
Usage
data(africa)
Format
A data frame with 47 rows and 7 variables:
- INFLATN
Inflation rates
- DICTATOR
Number of years of personal dictatorship that occurred from independence to 1989
- SIZE
Area at the end of the period, in thousand square kilometers
- GROWTH
Average annual gross national product (GNP) rate of growth in percent from 1965 to 1989
- CHURMED
Number of church-operated hospitals and medical clinics as of 1973
- CONSTIT
the constitutional structure when not a dictatorship in ascending centrality (0 = monarchy, 1 = presidential, 2 = presidential/parliamentary mix, 3 = parliamentary)
- REPRESS
Violence and threats of violence by the government against opposition political activity from 1990 to 1994
...
Examples
data(africa)
attach(africa)
library(lmtest)
library(plm)
## Table 7.4
y <- (INFLATN/100)[-16]
y[y > 1] <- 1
X <- cbind(DICTATOR,SIZE,GROWTH,CHURMED,CONSTIT,REPRESS)[-16,]
X[,4] <- log(X[,4]+.01)
africa.glm <- glm(y ~ X[,1:6], family=quasibinomial('logit'))
out.mat <- coeftest(africa.glm, vcov.=vcovHC(africa.glm, type="HC0"))
( out.mat <- round(cbind(out.mat[,1:2], out.mat[,1] - 1.96*out.mat[,2],
out.mat[,2] + 1.96*out.mat[,2]),4) )
[Package GLMpack version 0.1.0 Index]