Questions tagged [mlogit]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 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 ...
1
vote
1answer
49 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
15 views

Customer Churn: Difference predicting has or will churn

I have got the following question: I want to build a basic model which predicts whether a customer will churn or not using logistic regression to target 'high-risk' customers with, for instance, ...
0
votes
0answers
17 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
33 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
46 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
28 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 ...
0
votes
1answer
979 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
148 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
110 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 ...
0
votes
0answers
36 views

How to calculate the probabilities and log-likelihood of the conditional logit model?

I need to estimate the coefficients of the computational output that the "mlogit" package gives me. I follow the steps to estimate the coefficients that vary by individual and alternative given in ...
2
votes
1answer
58 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
734 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 ...
3
votes
2answers
317 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
123 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 ...
1
vote
1answer
197 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
423 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) ...
1
vote
1answer
311 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
37 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
91 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
81 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
27 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
231 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
85 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
270 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 ...
2
votes
1answer
680 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
72 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
2k 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
207 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
84 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
2k 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
312 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
164 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
150 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
1k 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
167 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 ...
3
votes
1answer
2k views

Multinomial logit: mlogit vs statsmodels

I am doing a comparison between mlogit in R and statsmodels in python and have had trouble getting them to produce the same result. I'm wondering if the difference is a result of libraries or I am ...
0
votes
1answer
310 views

Multinomial logistic regression where two choices are pooled/censored in the data?

I am looking for a lead on estimating a specific type of multinomial choice model. Specifically, assume that I see $N$ people and those people have some vector of characteristic $X$. For ten periods,...
5
votes
2answers
1k views

Analysing rank-ordered data using mlogit

I am trying to analyse rank-ordered data using a logit model as described here (more specifically the model in 5.1). Right now I am not interested in the effect of any covariates but only want to ...
2
votes
0answers
405 views

Handling singular matrix / linear separation in multinomial logit regression

I am doing an analysis of a choice-based conjoint / discrete choice experiment. After using the mlogit.data function in the ...
2
votes
1answer
767 views

Unusual high Odds Ratio Values in multinomial logistic regression

I was following the procedure in a statistics textbook to run a multinomial logistic regresion using mlogit. However, the Odds Ratios calculated seemed too high for ...
1
vote
1answer
467 views

Results from logit model using BIOGEME unexpected

I am using BIOGEME to estimate the discrete choice model (choice is made among four alternative routes). I am having hard time with modeling using BIOGEME, and expecting help on this. I have dataset ...
1
vote
0answers
435 views

Multinomial logistic regression on categorical data results in singular matrix

I have a categorical dataset from a biological sampling study consisting of six variables, see http://pastebin.com/ncLzw0Mt for the actual dataset. ...
0
votes
0answers
550 views

How do we calculate the path size (PS) for Path Size Logit Model?

I am using Multinomial Logit model for the discrete choice analysis, in which user chooses a route among other available paths. This is intended to determine the utility of those routes. As these ...
3
votes
1answer
715 views

mlogit. Negative value for sd

I fit a mixed logit using mlogit package, but I get negative values for standard deviation. Any idea why I am getting negative values and how this is interpreted? <...
4
votes
1answer
52k views

R gives me the error “contrasts can be applied only to factors with 2 or more levels” running an mlogit model, but all my factors have 2 levels [closed]

I have a set of results from a choice experiment that I am trying to analyse using the mlogit function in R. My data set is shown below, where each STR value represents the three choices in a single ...
4
votes
2answers
2k views

How do I do a conjoint analysis in R? I don't think the conjoint package is appropriate

We have conducted a conjoint survey of people's preferences when shopping for salmon. We have defined our salmon products in terms of "price" (20p steps from £3.60 to £5), "eco-certification" (none, ...
0
votes
0answers
345 views

R: Interpreting mlogit coefficients

Edit: The subset of the dataframe I provided way giving a different error, so I've replaced the pastebin entry with the full data frame. Here's the top of the data frame, then read into mlogit format ...