I have a problem when using the mixlogit command
I am able to run a clogit with the following:
It does give two notes
- note: multiple positive outcomes within groups encountered
- note: 97 groups (776 obs) dropped because of all positive and negative outcomes
When I try to run the same variables for a mixed logit model with the following:
This returns error r(498): At least one group has more than one chosen alternative.
The data that is used has 8 scenarios per user id. There are a total of 197 groups (1576 observations).
For each scenario the user has to make a choice between fsp (1), psp (2) and pup (3). Since this variable choice cannot be used as a dependent variable I first modeled the first choice fsp that is 1 is fsp is chosen and 0 otherwise.
I am able to run a clogit with the following:
Code:
clogit fsp td1 at1 fee2, group(id)
- note: multiple positive outcomes within groups encountered
- note: 97 groups (776 obs) dropped because of all positive and negative outcomes
When I try to run the same variables for a mixed logit model with the following:
Code:
mixlogit fsp td1, rand(at1 fee2) group(id) id(obsid)
The data that is used has 8 scenarios per user id. There are a total of 197 groups (1576 observations).
For each scenario the user has to make a choice between fsp (1), psp (2) and pup (3). Since this variable choice cannot be used as a dependent variable I first modeled the first choice fsp that is 1 is fsp is chosen and 0 otherwise.
Comment