Questions tagged [mlogit]

Multinomial logistic regression is a classification method that generalizes logistic regression to multiclass problems.

Multinomial Logistic Regression

In statistics, multinomial logistic regression is a classification method that generalizes logistic regression to multiclass problems, i.e. with more than two possible discrete outcomes. That is, it is a model that is used to predict the probabilities of the different possible outcomes of a categorically distributed dependent variable, given a set of independent variables (which may be real-valued, binary-valued, categorical-valued, etc.).

Multinomial logistic regression is known by a variety of other names, including multiclass LR, multinomial regression, softmax regression, multinomial logit, maximum entropy (MaxEnt) classifier, conditional maximum entropy model.

Source: http://en.wikipedia.org/wiki/Multinomial_logistic_regression

289 questions
1
vote
1 answer

Implementing mlogit with non 'choice' (land cover) data

I am trying to implement a multinomial logistic regression using mlogit with landcover change data. However, because mlogit seems to be built around “choice” data and examples are limited to such data, I’m having a hard time determining the…
DoctorSpruce
  • 147
  • 1
  • 8
1
vote
0 answers

R - effects function on mlogit - error "no individual index"

I have successfully run a mlogit like this: Base3<-mlogit(choice ~ return + risk + measure + pureplay + bestinclass + fee, Data, rpar=c(return = 'n', risk = 'n', measure = 'n', pureplay = 'n'), R = 100, halton = NA,…
Lena
  • 11
  • 1
1
vote
1 answer

System is computationally singular using mlogit in R

I am conducting multinomial logistic regressions. They seem to work for all variables except for the price variable, where I get the following error: reg.M <- mlogit::mlogit(formula = value ~ 1 | price, data = listDatasets[[2]]) Error in…
Mariella
  • 21
  • 4
1
vote
1 answer

Error with using mlogit R function: "The two indexes don't define unique observations"

My dataset look like this ID choice_situation Alternative Attr1 Attr2 Attr3 choice ID_1 1 1 0 0 0 0 ID_1 1 2 1 1 0 1 ID_1 2 1 1 1 0 0 ID_1 2 2 1 1 1 1 ID_1 3 1 2 1 0 1 ID_1 …
Ruser-lab9
  • 193
  • 1
  • 12
1
vote
0 answers

How to impute NAs dependent on another predictor?

I am trying to run a multinomial logistic regression with the function mlogit from the package of the same name. I would like to ignore NA values whose presence is always dependent on the value of other predictor (i. e. their presence is not…
1
vote
1 answer

How do you dynamically add row to a tibble

I working with the mlogit package. The package has some unforgiving data requirements. For each key in a data set, there must be an identical number of rows. Here is a reprex with an example: library(reprex) #> Warning: package 'reprex' was built…
Mutuelinvestor
  • 3,384
  • 10
  • 44
  • 75
1
vote
1 answer

mlogit package in R: with alternative specific variables and without intercept

I'm new to R, and I'm trying to run a logit model with alternative specific variables and without intercept. I have checked the documentation, but it seems that when I run the model with alternative specific variables, the intercepts are always…
Cassie Liu
  • 195
  • 2
  • 17
1
vote
1 answer

mlogit in R - coefficients and unknown random parameter

I'm trying to run mlogit on my data. My data is: > head(df[c(1:3, 33:45)]) ID Gender Age Option equipment.A equipment.B equipment.C clean.A clean.B clean.C people.A people.B people.C price.A price.B 1 108630 M 56 A 3 3…
1
vote
1 answer

R: how to format my data for multinomial logit?

I am reproducing some Stata code on R and I would like to perform a multinomial logistic regression with the mlogit function, from the package of the same name (I know that there is a multinom function in nnet but I don't want to use this one). My…
bretauv
  • 7,756
  • 2
  • 20
  • 57
1
vote
1 answer

How do I pull robust standard errors from logit in R?

I have conducted a logit regression in R using the code below (top). Now I am trying to obtain the robust standard errors for the exact same regression. I am using the code below (bottom) for that as well, but the significance varies considerably…
1
vote
1 answer

Mlogit error: Error in solve.default(H, g[!fixed]) : Lapack routine dgesv: system is exactly singular: U[6,6] = 0

I am trying to run a multinomial regression on my dataset to see the impact of Channel and Touchpoint on Choice with Price and Device as controls, but unfortunately receive an error mesage. The first few lines of my data.frame after already running…
steffiabc
  • 11
  • 1
  • 2
1
vote
0 answers

Argument "weights" in bayesglm() function in R

I am building a default risk prediction model using bayesglm with the binomial method and I would like fit the model with weights, I am trying to use the principal vector (amount of money that a company has lent to a person) as weights, but I got…
1
vote
0 answers

p values in multinominal

I can not find the p values for multinominal logit model using caret package Calculating p values are provided here but multinominal distribution should be binominal? does any one knows the right distribution and p value calculation for multi…
Seyma Kalay
  • 2,037
  • 10
  • 22
1
vote
0 answers

Singularity issue with sequential estimation of nested logit model

I try to estimate a nested logit model as a sequence of MNLs for teaching purposes. At some point of this procedure (see Ben Akiva & Lerman, 1986, Ch. 10, 10.4) one estimates jointly MNLs representing the nests. The MNLs (i.e., the "nests") are…
1
vote
0 answers

Why am I getting an error in mlogit() but not when I add +0 for no intercept for individual specific variables?

I'm trying to analyze some data using mlogit. I get an error saying" Error in solve.default(H, g[!fixed]) : system is computationally singular: reciprocal condition number = 1.18087e-27" (choice~1|v1+v2+...vn, data,…