| DutchPolitics {cmm} | R Documentation |
Political party and candidate preference in the Netherlands
Description
The data come from a Dutch panel study (T1 = February 1977, T2 = March 1977) and concern the questions for which party the respondent intends to vote (variables A and B, respectively) and which candidate the respondent prefers to become the next Prime Minister (C and D). The data have been analyzed before (Hagenaars, 1986, 1988, 1990), and more information on the panel study and the outcomes may be obtained from these references.
The data are tabulated in Bergsma, Croon, and Hagenaars (2009, Table 6.1).
Usage
data(DutchPolitics)
Format
A data frame with 1100 observations on the following variables.
AParty preference at time 1 (factor): 1 = Christian Democrats; 2 = Left wing; 3 = Other.
BParty preference at time 2 (factor): 1 = Christian Democrats; 2 = Left wing; 3 = Other.
CCandidate preference at time 1 (factor): 1 = Christian Democrats; 2 = Left wing; 3 = Other.
DCandidate preference at time 2 (factor): 1 = Christian Democrats; 2 = Left wing; 3 = Other.
Source
J. A. Hagenaars (1990). Categorical longitudinal data: log-linear, panel, trend, and cohort analysis. Newbury Park: Sage
References
Bergsma, W. P., Croon, M. A., & Hagenaars, J. A. P. (2009). Marginal models for dependent, clustered, and longitudinal categorical data. Berlin: Springer
J. A. Hagenaars (1990). Categorical longitudinal data: log-linear, panel, trend, and cohort analysis. Newbury Park: Sage
Examples
data(DutchPolitics)
# Marginal homogeneity: A=C and B=D
at2a <- MarginalMatrix(c("A","B","C","D"), list(c("A"), c("C")), c(3, 3, 3, 3));
at2b <- MarginalMatrix(c("A","B","C","D"), list(c("B"), c("D")), c(3, 3, 3, 3));
bt2 <- ConstraintMatrix(c(1,2), list(c(1),c(2)), c(2,3));
at2 <- rbind(at2a, at2b);
bt2 <- DirectSum(bt2, bt2);
model <- list(bt2, "identity", at2);
mpolMH <- MarginalModelFit(DutchPolitics, model,
MaxError = 10.^-25,
MaxSteps = 200,
MaxStepSize = .5,
StartingPoint = "Automatic",
CoefficientDimensions = c(2, 2, 3),
ShowProgress = 50);