[R] mlogit error

2015-06-16 Thread mikebarr
Hello, I am trying to run a mixed logit model (panel form) with the mlogit package. I am running into the following error: "Error in random.nb[, sel, drop = F] : subscript out of bounds". I have searched the R Help forum (and online) and see no instances of this error. Below is the coding that I

[R] Mlogit: Error in model.frame.default/ Error in solve.default

2015-01-15 Thread Lee van Cleef
Dear R users, 1) My problem in short: Mlogit cannot calculate certain conditional models. 2) My database: The target was a logistical regression analysis and a probability function which should include generic coefficients and alternative-specific ones. The database was a survey, the dependent

Re: [R] Mlogit error

2013-05-30 Thread Gary Dong
Hi, Graham, Thank you for sharing this. I encountered the same problem. My choice set was unbalanced because some alternatives were not available for some observations. If I forced the choice sets balanced, model estimation results would be biased. However, after including chid.var = "" and alt.va

[R] Mlogit error

2013-04-08 Thread Leask, Graham
Dear Listmembers Thank you for your help in resolving the duplicate row.names error. The solution was very straightforward to ensure that the choice set is completely balanced. Once that was achieved the program worked fine. Kind Regards Graham __ R

Re: [R] mlogit error

2013-04-07 Thread arun
    0    0    1   1    1    4    2  1  FALSE A.K. - Original Message - From: "Leask, Graham" To: "r-help@r-project.org" Cc: Sent: Sunday, April 7, 2013 10:39 AM Subject: [R] mlogit error Dear List I am trying to fit a multinomial model using the mlogit package.

Re: [R] mlogit error

2013-04-07 Thread arun
- From: "Leask, Graham" To: arun Cc: Sent: Sunday, April 7, 2013 11:28 AM Subject: RE: [R] mlogit error Hi Arun, I think you are right the issue may be how to identify those obs where this doesn't apply for whatever reason. The issue I think is the size of the data which make

[R] mlogit error

2013-04-07 Thread Leask, Graham
Dear List I am trying to fit a multinomial model using the mlogit package. Attempting to load the data into mlogit presents the following error. MLOG<-mlogit.data(Mult3,shape="long",choice="CHOICE",alt.var="mode.ids",indivs = "set3",chid.var = "obs") Error in `row.names<-.data.frame`(`*tmp*`, v

[R] mlogit error message "Error in X[omitlines, ] <- NA : subscript out of bounds"

2011-05-14 Thread Andrew Miles
Yong, I saw your post from April 29th about the error message in the mlogit package, copied below. I had the same problem, but solved it by omitting all missing data from my data frame before running mlogit.data(). ex. mydata = na.omit(mydata) I am posting this to the R help list as well so

Re: [R] mlogit error

2011-02-28 Thread Peter Ehlers
On 2011-02-28 12:54, gmacfarlane wrote: I actually have exactly the same question as Maha, and I wish that Z had answered the question instead of providing a lesson in streamlined code (valuable, but not helpful). I think that Achim answered as best one could, given that Maha neglected, as you

Re: [R] mlogit error

2011-02-28 Thread gmacfarlane
I actually have exactly the same question as Maha, and I wish that Z had answered the question instead of providing a lesson in streamlined code (valuable, but not helpful). It seems as though mlogit.data repopulates the row.names field, and that this is where the duplication comes in. hbwtrips<-

Re: [R] mlogit error

2010-08-13 Thread Achim Zeileis
On Fri, 13 Aug 2010, Maha Bakoben wrote: Hi, I'm trying to fit a multinomial logistic regression to my data which consists of 5 discrete variables (scales 1:10) and 1000 observations. I get the following error: Error in `row.names<-.data.frame`(`*tmp*`, value = c("NA.NA", "NA.NA", : duplica

[R] mlogit error

2010-08-12 Thread Maha Bakoben
Hi, I'm trying to fit a multinomial logistic regression to my data which consists of 5 discrete variables (scales 1:10) and 1000 observations. I get the following error: Error in `row.names<-.data.frame`(`*tmp*`, value = c("NA.NA", "NA.NA", : duplicate 'row.names' are not allowed In addition:

[R] mlogit: Error reported using sample dataset

2010-02-10 Thread Steve_Friedman
I've been working on a multinomial logit model, trying to predict vegetation types as a function of total phosphorus. Previous responses to my postings have pointed me to the mlogit package. I'm now trying to work examples and my data using this package. data("Fishing", package = "mlogit") Fish