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
0
votes
0 answers

Error in data.model %*% model$coef : non-conformable arguments

i hope you are well. I am modelling a logit regression but there is an error in my code. Every time I run the model I get this: Error in data.model %*% model$coef : non-conformable arguments. Could you help me with this? Thanks in advance. Please…
0
votes
0 answers

How to specify multiple observations per participant in mlogit in R?

I am conducting a multinomial regression using r package mlogit. All my independent variables are patient-specific (age, sex, etc), and not choice-specific. So my model looks like this: mlogit(outcome ~ 0 | age+Gender+comorbidities) I have some…
Hassan
  • 1
0
votes
0 answers

Penalty factors in glmnet with multimomial logit

I'm trying to fit an adaptive lasso for a multinomial logit regression with glmnet. My problem is the following: when I try to use the penalty matrix (a 2x3 matrix) penalty.factor in cv.glmnet I get the following error: `Error in glmnet(x, y,…
Mauricio
  • 23
  • 7
0
votes
2 answers

Where is the variance-covariance matrix for the coefficients from the command mlogit from the R package mlogit stored or how can I calculate it?

I have estimated a nested logit using the command mlogit() from the R package mlogit. The output is in the form of a list with 17 elements. If I run summary() on the output, I get a table with the estimated coefficients and their respective standard…
RobertoAS
  • 45
  • 6
0
votes
0 answers

Problem with viewing dataframe using the mlogit.data function in the mlogit package

I am trying to run a multinomial logit model on a Discrete Choice Experiment dataset. My data is in wide format, so I have used the following code to coerce the data to long format for MNL analysis. Long_Data <- mlogit.data(pilot_data, choice =…
0
votes
0 answers

R Mlogit system is exactly singular: U[1,1] = 0

I have conducted the pretest for a discrete choice experiment and try to compute the utility function for it using the mlogit package. I have converted the dataframe using: TM2 <- mlogit.data(ride2, choice = "choice_actual_log", shape = "long", …
ttttt
  • 1
0
votes
1 answer

R function similar to Stata mlogtest command

Is there an R function similar to the Stata commandmlogtest, combine? It's a handy function to perform multiple Wald tests if any categories from a dependent variable in a model can be combined with each other. Here is the documentation…
PCK1992
  • 213
  • 1
  • 14
0
votes
0 answers

How can I specify attribute levels in a mixed logit model?

I am conducting a study on consumer preferences, where respondents were asked to select a product based on a set of attributes. After running a mixed logit model, I obtained the results below. I am seeking assistance on how to segregate the results…
0
votes
0 answers

Multinomial logistic regression in R: multicollinearity issues in mlogit, not in multinom (nnet)

I want to run a multinomial logistic regression model, to compare the accuracy results of a random forest model in predicting a three-levels outcome. From what I read, the possible alternatives in R are multinom from nnet package and mlogit.…
kris
  • 109
  • 6
0
votes
0 answers

R: can't fit an mlogit() model, singularity error

I am fitting a Multinomial Logit model to choice data. When I have introduced a variable gender, suddenly, I can no longer fit a model as I am presented with an error message: Error in solve.default(H, g[!fixed]) : Lapack routine dgesv: system is…
RokasR
  • 13
  • 3
0
votes
0 answers

Use a dynamic Logit with already forecasted predictor values

I have a lag one dynamic logit model with factorscores as a stanionary time series with monthly observations. The lag one order model has the best RMSE value. Each higher lag order models (2,3,..) has worser validation values. I would like forecast…
0
votes
0 answers

Datatranformation mlogit models

I want to run a multinomial model with season as a random factor. A lot of sources say mlogit models are the best option. However, I am very much confused by how I should format my data frame. My goal is to make a model such as: Ecology = Group +…
S_vdp
  • 1
0
votes
0 answers

Mlogit in R: Data shape

I want to run a Multinominal Mixed Model Analysis using the r Package mlogit. Unfortunately somethings is wrong with my data structure, as r can not seem to find the data (error below). Child is Choiceid and CASE is subject ID. I also want to add a…
0
votes
0 answers

How can I define priors in rstanarm using R

I am trying to generate a logit bayesian regression model using the library rstanarm. This is a simplified version of the code (including data generation) that works #Data Generation set.seed(1) tamanioMuestraSi=103 tamanioMuestraNo=127 etiquetaSi…
slow_learner
  • 337
  • 1
  • 2
  • 15
0
votes
0 answers

How to perform an ordered probit regression using panel data in R

Please, can someone advise me on how to perform an ordered probit regression using panel data in R?. I received an error message when I tried the function 'plm'. The error message that I received was: Error in [[<-.data.frame(*tmp*, group.name,…
dave
  • 11
  • 1