Error in `row.names<-.data.frame using mlogit in R language
问题 Here are the steps I'm following to do a Multinomial Linear Regression. > z<-read.table("2008 Racedata.txt", header=TRUE, sep="\t", row.names=NULL) > head(z) datekey raceno horseno place winner draw winodds log_odds jwt hwt 1 2008091501 1 8 1 1 2 12.0 2.484907 128 1170 2 2008091501 1 11 2 0 3 8.6 2.151762 123 1135 3 2008091501 1 6 3 0 5 7.0 1.945910 127 1114 4 2008091501 1 12 4 0 10 23.0 3.135494 123 1018 5 2008091501 1 14 5 0 4 11.0 2.397895 113 1027 6 2008091501 1 5 6 0 14 50.0 3.912023 131