Displaying 1 result from an estimated 1 matches for "mldata1".
Did you mean:
mldata
2020 Oct 01
0
Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"
...>>
> >>
> >> So if shape = "wide", alt.var is not needed.
> >> But I am not a user of package mlogit, I'm just guessing.
> >>
> >> The following seems to fix it (it doesn't throw errors).
> >>
> >>
> >> mldata1 <- dfidx(mydata, shape = "wide",
> >> #alt.var = "ALT_name",
> >> choice = "Choice_binary",
> >> id.var = "IND")
> >>
> >>
> >> Hope this helps,...