Thanks a lot Bill!
This works fine!
Useful to know regarding subset.
Charles
--
View this message in context:
http://r.789695.n4.nabble.com/mlogit-message-invalid-row-names-length-after-subsetting-data-tp4684465p4684470.html
Sent from the R help mailing list archive at Nabble.com.
__
> dd1 <- subset(dd, dd$Effect=='none')
Try using
dd1 <- dd[dd$Effect=='none', ]
instead of that call to subset(). subset() strips
the non-data.frame attributes from its output.
It may be easier to use the subset argument to mlogit,
as in mlogit(..., subset = Effect=="none").
Bill Dunlap
TIBC
2 matches
Mail list logo