mlogit

  1. A

    Error in mlogit package: system is computationally singular

    I have a data set that is formatted according to mlogit's standards using mlogit.data command in Rstudio. Trip SevereEarthquake Night Age Mode 1.NTG 1 0 0 18 FALSE 1.TGNV 1 0 0 18...
  2. T

    R mlogit: How do I interpret marginal effects using absolute or relative type?

    Hi R users, I use effects() to compute the marginal effects of a mlogit model in R. effects(object, covariate = NULL, type = c("aa", "ar", "rr", "ra"), data = NULL,...) Which type ("rr", "aa", "ar", "ra") in effects() should I use when estimating the marginal effects? How do I...
  3. G

    mlogit: restrict coefficient of alternative-invariant variable to be equal for alt

    Hi. For evaluating a choice experiment I estimate a conditional logit model with mlogit in R . The output looks like this: Call: mlogit(RES ~ Money + X1a + X1b + X2a + X2b | Age, data = CE, reflevel = "C", shape = "long", alt.var = "ALT", method = "nr", print.level = 0) Frequencies...
  4. J

    can I use year dummies in mlogit (Stata) if I have time-varying independent variables

    Hi, I am trying to run an mlogit some panel-data in Stata. I know that gllamm is recommended. I was also given the advice to cluster by my caseid variable, and to include year dummies to control for any unobserved time-effects. Curious if this is a legitimate piece of advice? I am trying to...
  5. D

    prediction accuracy mlogit

    Hi, I am trying to perform a multilogistic model using stata. I used the command : mlogit TargetGroup PA_Score cigarweek cigwee age3 qw2 In standard logistic regression the solution would be the command class estat I have found this script online : // mlogit webuse sysdsn1...
  6. T

    R mlogit marginal effects with alternative-invariant variables only

    Hi everyone, can someone explain how to calculate the marginal effects of a multinomial logit model with alternative-invariant variables (e.g. income) only. A similar question was asked here but not answered sufficiently. The calculation works only, if I also include alternative-variant...
  7. R

    mlogit

    Hi there, I am trying to apply mlogit for a panel data set. I have 22 individuals (countries), for a 228 points in time domain, and 8 variables. I set my data in Excel in long format (I think!). I am trying to write a command to prepare data for mlogit by applying the following code...
  8. L

    calculate marginal effects using mlogit package

    Hi R-users I try to calculate marginal effects of a multinomial logistic regression. To do this i use mlogit package and effects() function. Here is how the procedure works (source : effects() function of mlogit package) : data("Fishing", package = "mlogit") Fish <-...
  9. D

    Stata to R conversion mlogit

    I know R fairly well but have very little experience with STATA. I am trying to convert the below mlogit command in Stata so it is usable in R. Can anyone help me? mlogit conflict lc1 lc2 ltsc0 ltsc1 ltsc2 loi loic1 loic2 lois0 let letc1 letc2 lets0 lli limc1 limc2 lims0 lyo lyoc1 lyoc2 lyos0...
  10. D

    mlogit from STATA to R

    I know R fairly well but have very little experience with STATA. I am trying to convert the below mlogit command so it is usable in R. Can anyone help me? mlogit conflict lc1 lc2 ltsc0 ltsc1 ltsc2 loi loic1 loic2 lois0 let letc1 letc2 lets0 lli limc1 limc2 lims0 lyo lyoc1 lyoc2 lyos0 llpo lpoc1...
  11. S

    discrete choice model in r with mlogit with nested data

    My data has multiple observations within participants. Each participant has 10 trials. For each trial, there are 4 options, there are variables associated with each of the options. The participant select one option at a time for 3 times. Each time one option is selected, it is removed and the...
  12. X

    Multiple Logistic Regression: Interpreting Insignificant Variables

    I ran a multiple regression, using the following categorical dependent variables which ranked current job satisfaction: 0=not satisfied at all 1=somewhat not satisfied 2=neutral (base outcome) 3=somewhat satisfied 4=definitely satisfied one of my independent variables is job_number (# of jobs...