Learn R Programming

GLMpack (version 0.1.0)

scotvote: Data on the Scottish national parliament vote

Description

Data for the Scotland example used in chapters 4, 5, and 6

Usage

data(scotvote)

Arguments

Format

A data frame with 32 rows and 7 variables:

PerYesTax

Percentage of population who granting Scottish parliament taxation powers

CouncilTax

Council tax collected

PerClaimantFemale

Female percentage of total claims for unemployment benefits as of January 1998

StdMortalityRatio

Standardized mortality rate

Active

Percentage of economically active individuals relative to the population of working age

GDP

GDP per council

Percentage5to15

Percentage of children aged 5 to 15

...

Examples

Run this code
# NOT RUN {
data(scotvote)
attach(scotvote)

## Table 4.3
scotvote

## Table 5.3
scottish.vote.glm <- glm((PerYesTax) ~ CouncilTax*PerClaimantFemale+
                     StdMortalityRatio+Active+GDP+Percentage5to15,
                     family=Gamma,data=scotvote)
vote.sum <- summary(scottish.vote.glm)
round(cbind(
  vote.sum$coefficients[,1], vote.sum$coefficients[,2],
  confint(scottish.vote.glm)),4)
vote.sum

## Table 6.3
anova(scottish.vote.glm,test="F")
# }

Run the code above in your browser using DataLab