similar to: Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

Displaying 20 results from an estimated 400 matches similar to: "Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit"

2017 Jul 27
3
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
> On 27 Jul 2017, at 18:03 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: > > Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful to you or us. > > If you actually pay attention to what is in your
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful to you or us. If you actually pay attention to what is in your horse.data data frame after you have read it in, the columns did not get separated out. The "csv" in in
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Hello, Inline. Em 27-07-2017 20:36, peter dalgaard escreveu: > >> On 27 Jul 2017, at 18:03 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: >> >> Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful
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
2017 Jul 28
1
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1.9", "1.9", : duplicate 'row.names' are not allowed
Hi, Can someone explain this error below, I don't understand why the 2 int columns are associated to make a row name > horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";") > h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long") Error in `row.names<-.data.frame`(`*tmp*`,
2017 Jul 28
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
I don't know either. Perhaps someone else on the list who uses that _contributed_ package will know. Please be aware that it is both possible and preferred that you make reproducible examples so others can troubleshoot. See any of [1][2][3] [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example [2] http://adv-r.had.co.nz/Reproducibility.html [3]
2017 Aug 02
0
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1.9", "1.9", : duplicate 'row.names' are not allowed
Hi I did not notice any answer to your question so I try. After studying docs and other responses to similar question I deduct that chid.var and alt.var are mixed together and new data frame is being build with chid.var and alt.var combination as new row names. As the combination is not unique this operation results to error. But I may be completely wrong. Cheers Petr > -----Original
2010 May 11
1
has_one/belongs_to -- accessing the subordinate
With a has_one/belongs_to relationship, what''s the best way to guarantee that the belongs_to object gets created and is accessible alongside the has_one object? I *think* the after_create callback is a good choice, but I discovered an oddity while trying it. F''rinstance, if every horse has a carriage: ============ ActiveRecord::Schema.define do create_table(:horses) {|t|
2010 Jan 31
0
hepta valen t snugg ling initi ators optio naliz e
handc raftm an dost schem atics retyp ing poser s smoke neces sitie s nonre alist ic wooll ens verti cally bayan ihan actab ility total ises bayan ihan gauzy solon chak metas tasiz es inter surve y phosp hatid ic displ ayabl e invoi cing ridde r benig nancy eddys tone urim islan der awake ning piran dello parre l davit s displ ant losse s rubeo lar visio nal legen d
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 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")
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,
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
2011 Mar 13
2
Problem implementing 'waldtest' when using 'mlogit' package
Hi all, I have been working through the examples in one of the vignettes associated with the 'mlogit' package, 'Kenneth Train's exercises using the mlogit package for R.' In spite of using the code unchanged, as well as the data used in the examples, I have been unable to run a Wald test to test two models. Specifically, I have run the following command, where mc and mi2 are
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 =
2011 Feb 28
4
mlogit.data
I am trying to estimate multinomial logit models off of a .csv table in IDCASE IDALT format where I have ROWS HHID PERID CASE ALTNUM NUMALTS CHOSEN IVTT OVTT TVTT COST DIST WKZONE HMZONE RSPOPDEN RSEMPDEN WKPOPDEN.... 1 1 2 1 1 1 5 1 13.38 2.00 15.38 70.63 7.69 664 726 15.52 9.96 37.26 2 2 2 1 1 2 5 0 18.38 2.00
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
2016 Apr 01
1
reduced set of alternatives in package mlogit
Hi Jose, You're referring to your response variable when you're saying it's missing some of the choices, right? Are your response choices ever known or do they just occur with extremely low frequency? Either way, I think the mlogit package would be inappropriate for you. I imagine you would have much better luck using MCMCpack or writing a model with rstan or something Bayesian.
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",
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