[R] Duplicate row names are not allowed

2017-05-22 Thread ville iiskola via R-help
Hi I read a book where was shown an example how to create a probability model with mlogit. I tried to do like the instruction said but i get error message that "duplicate row names are not allowed". What could i do to fix it? I had the data in excel and imported it to R using R commander. I

[R] p-value and mlogit

2012-03-18 Thread Ville Iiskola
Hi How does mlogit count the p-values of the variables? Ville [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] test to compare two different models

2011-12-21 Thread Ville Iiskola
Hi I am doing mlogit and forward selection at the moment. I have categorical and continuous variables. Categorical variables are each coded with more than two dummies. There is a problem when you add categorical variables into the model you can't tell from the significance of the individual

[R] Mlogit missing value problem

2011-12-19 Thread Ville Iiskola
Hi After good advices i post this problem here again. Now the attached sambledata is in csv form and it is a part of my real data. I have tried different na.action operations but the result stays the same... My code library(mlogit) library(foreign) z-odbcConnectExcel(D:\\SAMBLEDATA.csv)

[R] Dealing with NAs

2011-12-18 Thread Ville Iiskola
Hi I am trying to estimate parameter values with mlogit. I attach a part of my data. My code is x=mlogit.data(y,choice=voittaja,shape=long,id.var=id,alt.var=numero) summary(mlogit(voittaja ~ Ie-1 , data=x, na.action=na.pass)) But i get Error in if (abs(x - oldx) ftol) { : missing

[R] McFadden r^2 and the inrercept

2011-10-25 Thread Ville Iiskola
Hi I have estimated parameters of my data with mlogit and the following commands. I would like to know also the McFadden R^2 and the intercept, could soweone tell me how that can be done? library(RODBC) library(mlogit) library(foreign) z-odbcConnectExcel(D:\\MALLI11ARVOT.xls)

[R] Mlogit dummy problem

2011-10-23 Thread Ville Iiskola
Hi I have tried to estimate race winning probabilities with mlogit in R. I have different amount of contestors in the races and mlogit has a bug so that in those situations the mlogit does not work. So i tried to add dummy contestors to the race so that every race has an equal amount of

[R] duplicate 'row.names' are not allowed???

2011-08-25 Thread Ville Iiskola
Hi I have an example file in excel and i have following instructions to open and analyze the data in it. library(RODBC) library(mlogit) z-odbcConnectExcel(C:\\2008 Racedata.xls) Everything ok untill the next command x-mlogit.data(y,choice=winner,shape=long,id.var=datekey,alt.var=horseno)