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
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
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
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
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.
-
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
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
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
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
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<-
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
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:
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
13 matches
Mail list logo