# mclogit: Mixed Conditional Logit Models in R¶

The package ‘mclogit’ implements the estimation of *mixed conditional
logit* models via the PQL method as used in my
article
published in *Electoral Studies*. It is published on
CRAN. Development occurs
on GitHub, where both
releases and the
development tree can be found.

The probability that individual chooses alternative from choice set is

with

where are values of independent variables, are parameters (coefficients), and are random effects with a normal distribution.

The package allows to specify that random effects are equal for all individuals within clusters , that is for and , where such clusters also may be nested in a “multi-level” manner.

The “dependent variable” may be a “dummy variable” that is equal to 1 if individual has chosen alternative and 0 if s/he has chosen another alternative. For example, if all individuals face the same set of five alternatives, then five values of the dependent variable would correspond to each individual with only one of the values being equal to one and the other four values being equal to zero. (This is sometimes called that the data are in “stacked” format.)

Also, if “covariate classes” of individuals are formed that share the
same values of the independent variables *and* are members of the same
cluster, and indicates such a covariate class,
may be the count of individuals from covariate class that have
chosen alternative .