Displaying 20 results from an estimated 1000 matches similar to: "Mixed multinomial logit model (mlogit script)"
2011 Aug 12
0
Mixed Logit model mlogit error
I am new to R but I have managed to use mlogit to run multivariate logit
models successfully. My data violates the Independence of Irrelevant
Alternatives assumption and now I would like to run a mixed logit model. It
is a "wide" data set with 9 independent (individual) variables and three
choices (variable Y). The database is in a cvs file called CAU.
This is the code I have run
2009 May 07
0
Weighted multinomial logistic regression using the mlogit package
I have been trying to use the mlogit package to do a multinomial logistic regression, including both alternative-specific and individual-specific variables. I used the mlogit.data function to turn my dataframe into the correct format for the mlogit function, and have been able to run the regression. However, I would like to weight the different cases differently. (Just to clarify, it's not the
2011 Apr 10
2
Multinomial Logit Model with lots of Dummy Variables
Hi All,
I am attempting to build a Multinomial Logit model with dummy variables of
the following form:
Dependent Variable : 0-8 Discrete Choices
Dummy Variable 1: 965 dummy varsghpow at student.monash.edu.augh@gp1.com
Dummy Variable 2: 805 dummy vars
The data set I am using has the dummy columns pre-created, so it's a table
of 72,381 rows and 1770 columns.
The first 965 columns represent
2011 Jan 18
0
multinomial choice modeling with mlogit
Hi all,
Does anyone knows how to handle ordered preferences applying the R
package mlogit (multinomial logit model)? My data set provides for each
customer preferences (given as percentages) for 6 different brands. I
would like to use for model calibration not just that brand with
maximum stated preference.
I know that ordered preferences can be used in the R package MNP
(multinomial Probit
2008 Dec 14
0
Output mlogit package (multinomial logistic regression)?
Hello,
For my master thesis I conducted a conjoint analysis. Using the
mlogit-package of Yves Croissant I should be able to analyse my choice
data.
I read the whole program of mlogit, but I do not understand how my
coefficients must be interpreted.
Are they a result of P(Y=i) or are they P(Y=i)/P(Y=1) where 1 is my
base category, or are they a result of ln(P(Y=i)/P(Y=1)). I can not
find an answer
2012 Jan 10
1
Lapack routine dgesv: system is exactly singular
Hi
I have a problem with this error, I have searched the archives and found
previous discussion about this, can I cannot understand how the explanations
apply to what I am trying to do.
I am trying to do Log_rank Survival analysis, I have included tables and str
command, is it a factor/integer problem? If so how do I correct this, as all
my attempt to recode the data have failed.
>
2008 Apr 11
1
Multinomial Logit Regression
Hi all,
I have a dataset with a response variable with three categories (1, 2, 3)
and a lot of continuous variables. I'd like to make a MLR with these
variables. I've been watching the libraries nnet and zelig for this purpose
but I don't understand them well.
I use a training sample data to make the MLR.
train.set <- sample(1:1000,1000*0.7)
I have done this:
library(nnet)
net
2012 Apr 19
1
mlogit learning error
I am learning five mlogits as follows
v1.model<-mlogit(v1~1|v2+v3+v4+v5, data=mlogit.v1.data, reflevel="1")
v2.model<-mlogit(v2~1|v1+v3+v4+v5, data=mlogit.v2.data, reflevel="1")
v3.model<-mlogit(v3~1|v1+v2+v4+v5, data=mlogit.v3.data, reflevel="1")
v4.model<-mlogit(v4~1|v1+v2+v3+v5, data=mlogit.v4.data, reflevel="1")
2009 Jan 07
0
Multinomial Logit Model
I'm attempting to creat multinomial logistic regression model using the
following code:
mlogit<- vglm(ME ~ HIST,family=multinomial(),na.action = na.pass)
ME (dependent variable) has three levels (0,1,2)
How do I declare a reference outcome (either 0,1,2)?
2010 Mar 07
3
mlogit
I am trying to follow this example for multinomial logistic regression
http://www.ats.ucla.edu/stat/r/dae/mlogit.htm
However, I cannot get it to work properly.
This is the output I get, and I get an error when I try to use the mlogit
function. Any ideas as to why this happens?
> mydata <- read.csv(url("http://www.ats.ucla.edu/stat/r/dae/mlogit.csv"))
> attach(mydata)
>
2012 Oct 01
2
mlogit and model-based recursive partitioning
Hello:
Has anyone tried to model-based recursive partition (using mob from package
party; thanks Achim and colleagues) a data set based on a multinomial logit
model (using mlogit from package mlogit; thanks Yves)?
I attempted to do so, but there are at least two reasons why I could not.
First, in mob I am not quite sure that a model of class StatModel exists for
mlogit models. Second, as
2010 Feb 10
0
mlogit: Error reported using sample dataset
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 <- mlogit.data(Fishing, varying = c(4:11), shape = "wide",
2016 Apr 13
0
reduced set of alternatives in package mlogit
To back up Ber's please have a look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html
John Kane
Kingston ON Canada
> -----Original Message-----
> From: jose.ferraro at logiteng.com
> Sent: Wed, 13 Apr 2016 17:18:35 +0000
> To: cdesjard at umn.edu
> Subject: Re: [R] reduced set of
2011 Nov 02
0
Calling str() on mlogit object gives warnings
Hi:
When I call str() on an mlogit object, I seem to get warnings. This
code is from an example provided in the mlogit documentation:
library(mlogit)
data("Train", package="mlogit")
tr<-mlogit.data(Train, shape="wide", choice="choice", varying=4:11,
sep="", alt.levels=c(1,2), id="id")
2010 Feb 24
2
mlogit is not an S4 object error
Hello,
I've been getting the following error when using the mlogit function from
the mlogit package
This is one of the examples provided in the Package "mlogit" January 27,
2010 description
data("Fishing", package="mlogit")
Fish <- mlogit.data(Fishing, varying = c(4:11), shape="wide",
choice="mode")
summary(mlogit(mode ~ pr + ca - 1,
2011 Nov 29
0
Single Variable mlogit formatting
Hello,
I'm trying to run a mlogit regression on my data, and have been unsuccessful
so far. The data I am working with consist of many observations of how
people react when given a certain number. I have just 2 data points per
observation: a number (there are ~300 different possible numbers) and then a
reaction (either 0, 1, or 2). The reactions are mutually exclusive and
exhaustive.
I am
2010 Jun 03
1
mlogit and weights
Hello,
I can't figure out why using and not using weights in mlogit yields
identical results. My motivation is for the case when an
"observation" or "individual" represents a number of individuals. For
example,
library(mlogit)
library(AER)
data("TravelMode", package = "AER")
TM <- mlogit.data(TravelMode, choice = "choice", shape =
2012 May 29
0
mlogit package inquiry
Dear all,
? I am implementing a stochastic utility model that will eventually
make use of multinomial logit. I found that there is a package in R
called mlogit. I am not sure whether I have already found the correct
package or software. May I ask am I correct?
? Basically, let's say
? I have observations of n outcomes, for each outcome 1<=i<=n, they
were selected by a choice from a set
2010 Feb 14
1
mlogit function cut off formular
I'm trying to fit a multinominal logistic model using package mlogit. I have
15 independent variables. The code looks like this:
m<-mlogit(score~0|f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13+f14+f15, data,
reflevel="1")
And it gives the following error message:
Error in parse(text = x) :
unexpected ')' in "score ~ 0 + alt:(f1 + f2 + f3 + f4 + f5 + f6 + f7 + f8
+ f9
2017 Jul 28
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Hello,
There's a typo in your call to mlogit.data, it should be
alt.var="nbChev", not alt.var="noChev".
Then the error is different. You should check the call arguments to see
if they make sense.
Hope this helps,
Rui Barradas
Em 28-07-2017 13:14, sandoz at free.fr escreveu:
> I re post my question with the csv problem fixed.
>
> Can someone explain the