simclogit {em}R Documentation

Simulated Data from a conditional logistic regression

Description

A data set with simulated data from a mixture of a conditional logistic regression.

Usage

simclogit

Format

A data frame with 10000 rows and 4 variables:

x2

A dummy variable showing whether x is equal to level 2

x3

A dummy variable showing whether x is equal to level 3

a2

Whether the alternative choice 2 is chosen

a2_x2

Interaction between a2 and x2

a2_x3

Interaction between a2 and x3

a3

Whether the alternative choice 3 is chosen

a3_x2

Interaction between a3 and x2

a3_x3

Interaction between a3 and x3

chosen1

Whether the observation-alternative combination is chosen (Generated by a one-class regression).

chosen2

Whether the observation-alternative combination is chosen (Generated by a two-class mixed regression).

fid

Family ID

id

Individual ID

z

Other variables

Source

<https://www.github.com/wudongjie/em>


[Package em version 1.0.0 Index]