Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

electors

Class, Party Position, and Electoral Choice


Description

This is an artificial data set on electoral choice as influenced by class and party positions.

Usage

data(electors)

Format

A data frame containing the following variables:

class

class position of voters

party

party that runs for election

Freq

freqency by which each party list is chosen by members of each class

time

time variable, runs from zero to one

econ.left

economic-policy "leftness" of each party

welfare

emphasis of welfare expansion of each party

auth

position on authoritarian issues

Examples

data(electors)

summary(mclogit(
  cbind(Freq,interaction(time,class))~econ.left+welfare+auth,
  data=electors))

summary(mclogit(
  cbind(Freq,interaction(time,class))~econ.left/class+welfare/class+auth/class,
  data=electors))

# This takes a bit longer.
summary(mclogit(
  cbind(Freq,interaction(time,class))~econ.left/class+welfare/class+auth/class,
  random=~1|party.time,
  data=within(electors,party.time<-interaction(party,time))))

summary(mclogit(
  cbind(Freq,interaction(time,class))~econ.left/(class*time)+welfare/class+auth/class,
  random=~1|party.time,
  data=within(electors,{
        party.time <-interaction(party,time)
        econ.left.sq <- (econ.left-mean(econ.left))^2
        })))

mclogit

Multinomial Logit Models, with or without Random Effects or Overdispersion

v0.8.7.3
GPL-2
Authors
Martin Elff
Initial release
2021-03-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.