Questions tagged [mlogit]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
18 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 ...
2
votes
0answers
190 views

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

My data.frame looks like this: ...
0
votes
1answer
57 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". ...
0
votes
0answers
307 views

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

I am trying to analyze a choice experiment for a homework: ...
1
vote
0answers
24 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 ...
3
votes
1answer
66 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 ...
1
vote
0answers
44 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 ...
1
vote
0answers
14 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 ...
0
votes
0answers
52 views

How to predict probabilities from multinomial models, when levels are coded?

I'm using a discrete choice experiment (DCE), and I've estimated the answers with a nested logit model (using mlogit package of r software), which gives quite good results. However, I've coded ...
0
votes
0answers
22 views

How to use discrete choice models on market share for products?

I have a dataset on market share of products by time-period. Total observations is 26622. Total unique time period is 41. Unique products are around 638. There are time column, product column, price ...
1
vote
0answers
92 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 ...
4
votes
1answer
184 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 ...
0
votes
0answers
48 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 ...
2
votes
1answer
706 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 ...
0
votes
1answer
92 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 ...
2
votes
1answer
299 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 ...
0
votes
0answers
19 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?
2
votes
1answer
42 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. ...
0
votes
0answers
75 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 ...
0
votes
1answer
56 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 ...
4
votes
1answer
5k 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: ...
1
vote
1answer
639 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 (...
3
votes
1answer
460 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 ...
2
votes
1answer
79 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 ...
4
votes
1answer
2k 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 ...
5
votes
2answers
447 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{...
3
votes
1answer
206 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 ...
2
votes
1answer
411 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-...
1
vote
0answers
688 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) ...
2
votes
1answer
742 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 ...
0
votes
0answers
41 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, ...
1
vote
0answers
111 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 ...
1
vote
0answers
97 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. <...
0
votes
0answers
31 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: ...
1
vote
1answer
515 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 ...
1
vote
1answer
105 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 ...
2
votes
0answers
396 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 ...
3
votes
2answers
927 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: ...
0
votes
1answer
80 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 ...
1
vote
1answer
3k 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 ...
2
votes
0answers
261 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 ...
0
votes
0answers
124 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 ...
0
votes
1answer
3k views

Interpreting mlogit coefficients in R - odds ratios and negative coefficients

I am struggling to understand how to interpret the output from my mlogit model. I am working with a dataset that is looking at where someone will get a tattoo (location, reference level = foot) ...
1
vote
0answers
403 views

How to determine variable type for a multinomial conditional logit model?

To give some background I am working to replicate a study using R where a multinomial conditional logit model was used to estimate the likelihood a college football recruit would attend a specific ...
0
votes
1answer
2k views

mixed logit model r-package

I am using the mixed logit model implemented in R to estimate coefficients for the model. However, I am not sure which parameters I should define as random and which as not. Also, is it possible to ...
1
vote
1answer
191 views

Is there a way to use weakly informative default prior distributions for multinominal regression models?

Following Gelman et al. 2008, we can use e.g. in the case of complete separation, weakly informative prior distributions to estimate a bayesian logistic regression. However I wonder, whether there ...
4
votes
1answer
188 views

Model relation between two rank variables where ranks are nested within subjects in one variable

I have elicited 10 attributes from $N$ subjects. Each subject rank ordered his own 10 attributes from the most to the least important one. I am interested in the relation between the order of ...
1
vote
1answer
2k views

Elasticities for Multinomial Logit Model (Stata)

I estimat a multinomial logit model in Stata. Is it possible to compute elasticities from the MLogit model? If so, do I need to take the logarithm of the y and x variable, or only the log of x? I ask ...
2
votes
1answer
2k views

How do I model a conditional logistic model with varying choice set in R

I have a dataset, where individuals ( no repetition of individuals in the data) face different choice sets. I wanted to model the individuals choice using the mlogit function in R. All the examples on ...
0
votes
0answers
319 views

Error using mlogit pkg in R for logistic regression on Clinical dataset

I am a clinicians (limited statistical knowledge) who is trying to use mlogit pkg in R to analyze a clinical dataset, running logistic regression on it. I am trying to ascertain if there is any ...