Displaying 1 result from an estimated 1 matches for "horseno".
Did you mean:
horsens
2011 Aug 25
1
duplicate 'row.names' are not allowed???
...ons 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")
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.8", "1.11", "1.6", :
duplicate 'row.names' are not allowed
Could someone tell me what is wrong...this is an examble file and i just followed the instructions in the paper but not working......