Hi Michael,
many thanks for the useful hints which gave me some deeper knowledge of R.
It is definitely much appreciated.
I think I have found the mistake - the problems did not arise from variable
definitions etc. It was an intellectual mistake.
The cause for the problems was that I had to di
Hi Michael,
many thanks for your time and the hint. This is much appreciated.
Indeed, I managed it to get part of the dataset from which I want to develop
my final logit model in the correct long format with true/false standing in
the column for the choice variable,.
But the problem with the v
Hi Lee,
I've finally had time to look at this:
If you look at
?mlogit.data
you'll see that choice must be "the variable indicating the choice
made: it can be either a logical vector, a numerical vector with 0
where the alternative is not chosen, a factor with level 'yes' when
the alternative is
Hi Michael,
I have sent youi the data.
Best,
Lee
--
View this message in context:
http://r.789695.n4.nabble.com/length-of-variable-in-mlogit-tp4638323p4639873.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org ma
On Fri, Aug 3, 2012 at 11:49 AM, Lee van Cleef wrote:
> Hi Michael,
>
> many thanks for your comment.
>
> Below the original data as imported from Stata format.
Hi Lee,
I apologize for being intransigent (well, no -- I actually don't) but
could you provide your data using dput() as asked?
Best,
Hi Michael,
many thanks for your comment.
Below the original data as imported from Stata format. I deleted some
columns with explaining variables because they were unnecessary and working;
the model has several explaining variables with generic regression
coefficients.
pid Choice V7.Ch 1
On Fri, Aug 3, 2012 at 4:27 AM, Lee van Cleef wrote:
> Ingmar,
>
> many thanks for your answer.
>
> I give you a smaller version of my program with the isolated "strange"
> variable, which I used when trying to elaborate the problem .
>
> [Start of R-Editor quote]
> library(foreign)
> library(gdat
Ingmar,
many thanks for your answer.
I give you a smaller version of my program with the isolated "strange"
variable, which I used when trying to elaborate the problem .
[Start of R-Editor quote]
library(foreign)
library(gdata)
library(gtools)
library(gmodels)
library(gplots)
library(xtable)
li
Lee,
A working, or in this case failing, example is necessary to detect what the
problem is.
This would include a statement loading the package that you use to run your
mlogit models; the latter is necessary because there are various packages
with functions that are called mlgoit.
Best, Ingmar
On
Ingmar, many thanks. I get that one from R:
Error in model.frame.default(terms(formula, lhs = lhs, rhs = rhs, data =
data), :
variable lengths differ (found for 'X')
X is the variable I have used.
Any comment would be much appreciated.
Best regards!
--
View this message in context:
ht
hard to judge what the problem is without an example and without the actual
error message that mlogit (which one? there are several functions with that
name in various packages) gives you.
best, Ingmar
On Mon, Jul 30, 2012 at 11:30 AM, Lee van Cleef wrote:
> Dear all,
>
> does anybody have exper
Dear all,
does anybody have experience with building logits in Mlogit?
I want to test the use of a couple of alternative specific variables with a
generic regression coefficient. However, one of them simply does not work. R
says the length of this variable is different.
Problem: If I check the l
12 matches
Mail list logo