Questions tagged [mlogit]

mlogit is an R package for estimating models from the logit family

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Is it possible to reproduce a nested logit discrete choice model with a glm?

I'm trying to understand if I can fit mlogit's nested logit model using a different parametrization under the base glm procedure....
Guilherme Marthe's user avatar
2 votes
1 answer
228 views

mlogit + logitr packages fail to recover true estimates of mixed logit random coefficient model

I am running Monte-Carlo simulations on a simple DGP of a mixed logit random coefficient model to check if the mlogit and logitr ...
JediKnight's user avatar
0 votes
0 answers
40 views

Coefficient are zero using the pylogit conditional logit model

Trying to understand conditional logic model using the dataset https://raw.githubusercontent.com/pranavn91/PDF/main/xlstats_cbca.csv But I am getting all the coefficient as zero (pylogit MNL model) I ...
pranav nerurkar's user avatar
1 vote
0 answers
14 views

How to put separator among variables in R mlogit package

I really appreciate your help with my data. I am using mlogit package in R for random utility model: https://www.jstatsoft.org/article/view/v095i11#:~:text=mlogit%20is%20a%20package%20for,random%...
Sophie Nguyen's user avatar
0 votes
0 answers
106 views

R - mlogit - "system is exactly singular" error

I'm trying to conduct a multinomial logistic regression that tests the likelihood that survey respondents will select one of three options, depending on characteristics of the option and of the ...
Jon's user avatar
  • 13
0 votes
1 answer
246 views

What is the prior distribution in a multinomial logistic regression (UPG package in R, Bayesian statistics)? [closed]

In my thesis I want to compare the frequentist and bayesian approach, specifically in doing a multinomial logistic regression. I have had only a few lectures on Bayesian statistics during my bachelors,...
hartster's user avatar
0 votes
0 answers
330 views

Multinomial logit with time-varying alternative-specific constants

I observe some individuals (labeled id) that have made a choice from a set (the alternative variable is alt). The choice set ...
vaaaaaal's user avatar
0 votes
2 answers
250 views

Is there a statistical software package for the generalized conditional/multinomial logit model?

I have a discrete choice model of moving from one state to the other, so alternatives=states. I have case-specific variables such as income, race, and gender. In addition, I have moving distance ...
1 vote
1 answer
660 views

Interaction between alternative-specific and individual-specific variables in a conditional logistic regression

I am interested in the moderating effect of a voter's political knowledge on the effect of a voter's candidate evaluations on vote choice. I am trying to estimate conditional logit models to analyze ...
niju's user avatar
  • 13
0 votes
0 answers
179 views

Unexpected sign of a regression coefficient; how should I interpret this result?

I estimated a multinomial logit model for travel mode choice on my dataset. The sign of the beta parameter for the "bus_cost" variable is positive. But a positive sign does not make sense, ...
Developer_1987's user avatar
1 vote
0 answers
24 views

Differences of proportions over time with dependent choices?

I'll try to summarise my problem: I have a memory study where people (after some experimental procedures) have to make a choice regarding 100 different photos. The choices in each photo are always the ...
Josué García Arch's user avatar
3 votes
0 answers
979 views

Error impossible to coerce the choice variable to a logical [closed]

My data.frame looks like this: ...
Ankit Agrawal's user avatar
0 votes
1 answer
511 views

I try to replicate the results of multinom() function with optim() function in R, but it does not yield the same results. What was wrong?

I want to replicate the results of multinom() function with optim() function in R, but it does not yield the same results. What was wrong? First, I imported a public data as "ml". ...
Shin's user avatar
  • 43
0 votes
0 answers
2k views

R mlogit package: system is computationally singular: reciprocal condition number

I am trying to analyze a choice experiment for a homework: ...
PDS's user avatar
  • 21
1 vote
0 answers
77 views

Multinomial logistic regression for common outcomes

Under logistic regression, the resulting odds ratios can be approximated and interpreted as risk ratios only if the outcome is rare (as a rule of thumb, less than 10% prevalence). This is sometimes ...
Bicep's user avatar
  • 137
3 votes
1 answer
157 views

Rank-ordered data - dealing with increased randomness among lower ranks

What is the best way to analyze rank-ordered data when there are signs that respondents were less diligent/able to assign lower ranks? Is it sufficient to introduce a dummy for lower/earlier ranks ...
Carlo Knotz's user avatar
2 votes
0 answers
201 views

Mixed logit with only one choice situation/observation per individual - valid to use?

I have data from an experiment where participants had to choose one of 12 alternatives. I analyzed the data with a conditional logit model. That is I used the attributes of the choices to explain ...
Ahorn's user avatar
  • 61
1 vote
0 answers
24 views

Modeling stated preference alternative labels vs alternative characteristic levels

I have data from a stated preference survey in which each respondent answers 3 questions each with 3 alternatives. A status_quo / opt-out alternative is the first option for all questions. The ...
mpap's user avatar
  • 11
1 vote
0 answers
468 views

How to estimate a nested logit model using mlogit in R in the case of panel data and degenerate branche?

I'm using a Discrete Choice Experiment. I have 9 choice sets with 3 alternatives (2 alternatives and an opt-out), the alternatives are described with 4 attributes. I want to use a nested logit model ...
Lizzie001's user avatar
3 votes
1 answer
643 views

How to add Indivivual Specific Variables for unlabelled alternative (using interactions) using mlogit with R?

I’m using DCE with unlabelled alternatives, 9 choice set with 3 alternative each (2 option and Optout alternative), described with 4 attributes. I've started with a conditional logit (with only ...
Lizzie001's user avatar
0 votes
0 answers
215 views

R MLogit 'system is singular' error

I'm running a choice model comparing how users choose between multiple options in an app. I have the data formatted for use with MLogit: Price and dist_rank_cat are features that vary by ...
ctd25's user avatar
  • 101
2 votes
1 answer
4k views

Stata multinomial logit IIA assumption violated or not?

My dependent variable is Choice, 0 for non-issuers, 1 for seasoned equity issuers, 2 for convertible issuers and 3 for bond issuers. I use the following command to ...
chen mengqian's user avatar
1 vote
1 answer
374 views

Translating multinomial logistic regression into mlogit choice-modelling format

I have an EEG dataset where I have several subjects in multiple sleep stages (~10 subjects, 5 stages). I want to see which of a number of EEG-derived metrics (measured in each subject in each sleep ...
Soren Wainio-Theberge's user avatar
2 votes
1 answer
759 views

latent class model on choice data with gmnl - choosing starting values

I want to run a LCMNL (using the gmnl-package) on choice data. I read that starting values can influence class allocation since LCMNL can have several optima. I found the following example code that I ...
colonus's user avatar
  • 92
0 votes
0 answers
22 views

Logistic regression of both ordinal response and explanatory variables [duplicate]

Here the last column is my response variable. I have four predictors that are ordinal. How best to code them to preserve their "ordinal" properties?
Sharif Mahmud's user avatar
2 votes
1 answer
181 views

CBPS Package: PS changes by changing base category [closed]

I am using CBPS package. The treatment variables has three options. Therefore, a multi logit model is run through CBPS. However, the resulting propensity score changes by changing the base category. ...
Ahmed Arif's user avatar
0 votes
0 answers
148 views

I'm trying to analyze my data using mlogit. I get singularity issues. I am very new to statistical modelling. Help appreciated!

The csv for the dataframe is here. Basically the column Mode represents the transportation choice available for the user to go to the airport, Choice represents the user's choice, and all the other ...
Harsh Asnani's user avatar
0 votes
1 answer
212 views

Estimating a Conditional MNL in mlogit

The Problem I am trying to estimate a conditional multinomial logit model where each household has an observed house choice outcome given a set of alternatives. Each set of alternatives is unique to ...
cds275's user avatar
  • 1
5 votes
1 answer
11k views

Random effects for a mixed multinomial logistic regression in R?

I have a dataset in which individuals, each belonging to a particular group, repeatedly chose between multiple discrete outcomes. Something akin to: ...
jjcii's user avatar
  • 65
3 votes
1 answer
2k views

Mixed logit random parameters for individual specific variables

It is my understanding that in a mixed logit model there can be two types of variables, alternative specific and individual specific. For example, in a dataset for choices of fishing modes like this (...
Cristian Arteaga's user avatar
3 votes
1 answer
1k views

interaction with a mixed logistic regression using mlogit on choice data

What is the best way to analyse interactions in choice data between an individual specific variable and an alternative specific variable? I have designed a discrete choice experiment in which ...
colonus's user avatar
  • 92
2 votes
1 answer
177 views

Logistic regression when the number of options differs by group?

I have data from a laboratory experiment in which I look at the effect of expanding the choice set on a particular option being chosen. The idea is that introducing an Option "B" reduces demand for an ...
user2898391's user avatar
5 votes
1 answer
5k views

Binomial Regression "logit" vs "cloglog"

I am using a binomial regression with a categorical factor with 9 levels (named 'treat.group') and sample sizes in each group from 1-8. 1 treatment group has all positive cases (i.e., 1's) - and this ...
Ella Lunny's user avatar
5 votes
2 answers
632 views

mlogit package fails to recover synthetic mixed logit model

I am generating data from the following synthetic mixed effects model for the utility of agent $h$ choosing transportation mode $j$: $U_{hj} = \beta_{\text{price}} X_{h,\text{price}_j} + \beta_{\text{...
khoda's user avatar
  • 371
3 votes
1 answer
418 views

Probability of choosing the degenerate branch in a nested multinomial logit

This may be an obvious question, but I'm flummoxed. Let's say I've got a nested logit model with a degenerate nest—say, a healthcare choice model where the branches are Home vs. Hospital. The Home ...
TheChainsOfMarkov's user avatar
3 votes
1 answer
729 views

in- and out-of-sample predictions with mlogit using random parameters

I am using the mlogit R package to fit a mixed multinomial logit model -- that is, a multinomial logit model with random coefficients. I fit my model with in-sample choice data consisting of in-...
khoda's user avatar
  • 371
1 vote
0 answers
1k views

R mlogit and McFadden R^2 (strange?) value

I was a little bit surprised by the high value of the McFadden R^2 given by the "mlogit" R package for this simple model: f = mFormula(mode ~ log(cost) | 1 | 1) ...
Bart Jourquin's user avatar
3 votes
1 answer
2k views

Calculating variable importance in a multinomial logit model

I am analysing data from a discrete choice experiment from a sample of 1000 responses where a respondent were presented with two cards and had to choose their preferred option. In the survey there ...
Cadbon's user avatar
  • 131
0 votes
0 answers
50 views

Discrete choice model with exclusionary choices

Suppose we have many agents $j\in \{1,..,J\}$ choosing over options $i$ to maximize their outcome of the form $$ max_i ~~Y_{ij} = \beta x_i + u_{ij} $$ where $u_{ij}$ is an error term. The options, ...
JorgeG's user avatar
  • 211
2 votes
0 answers
187 views

How to check convergence of mixed logit model?

I have estimated mixed logit model using data collected from 69 respondents. each respondents have faced 4 repeated choice scenario. I have 7 variables. in the model, 5 variables are assumed to be ...
Sudas's user avatar
  • 43
1 vote
0 answers
128 views

Modeling votes on discrete outcomes with mlogit

I am looking to figure out do phone calls effect votes for a product in a product trial and I am wondering what the correct model design is. I have a toy dataset below that describes my problem. <...
user3022875's user avatar
0 votes
0 answers
42 views

ordered logit with unranked alternatives

What is the best approach to deal with a dataset that has unranked alternatives? For example, suppose that we have some unranked alternatives on the Games dataset: ...
Ignacio's user avatar
  • 225
1 vote
1 answer
1k views

Is there any implication of a large log-likelihood value?

I have estimated a discrete choice model using the MLE procedure and got a very large log-likelihood value (log-likelihood: -236018.2). Is there any implication to the result? [edit] I have 4300 ...
Sudas's user avatar
  • 43
1 vote
1 answer
126 views

conjoint or something else

I have shown customers two products with certain attributes and asked them to select one of the products. I have done this 12 times with different combinations for each customer. I have a total number ...
Shashwat Goyal's user avatar
2 votes
0 answers
549 views

Multinomial logit model in R with class factor predictors [closed]

I am running multinomial logit model using mlogit in R. The model includes 3 alternatives as the dependent variable and 4 individual specific predictors. Sample size is 50. The three of them are of ...
sriya's user avatar
  • 23
3 votes
2 answers
1k views

How to use multinomial probit coefficients to predict?

I fitted a multinomial probit model with one independent categorical variable Y (levels 1,2,3) and two explanatory variables X1 and X2. Using mlogit package in R like this: ...
Cristian Arteaga's user avatar
1 vote
1 answer
113 views

Transforming the independent variables is NOT improving fit for conditional logistic regression

I built a conditional logistic regression model for 'guest booking a hotel from the hotel search results page'. In my initial model, I didn't do any transformations to the independent variables. This ...
tjt's user avatar
  • 807
3 votes
1 answer
4k views

Coefficient interpretation in multinomial logistic regression [closed]

I am not really good in statistics so please bear with me here :) I was reading an article regarding financial advisors in mergers and acquisition deals and couldn't quite understand how the authors ...
Dimi92's user avatar
  • 31
2 votes
0 answers
364 views

How to compare coefficients between mlogit models in R?

I would like to know what the appropriate statistical method is, to compare B Coefficients between multinomial logit models in R. My dataset consist of stated preferences data that I obtained from a ...
Kevin Sutherland's user avatar
0 votes
0 answers
234 views

Discrete choice models; estimating probability of new alternatives

Let's say the set of alternatives are $j=1,2,...J$, where $X_i$ is the vector of subject-specific attributes for subject $i$, and $Z_{ij}$ is the vector of alternative-specific attributes for ...
Reza Amindarbari's user avatar