search for: choice_binary

Displaying 2 results from an estimated 2 matches for "choice_binary".

2020 Sep 21
2
Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"
...is a panel of 9*516 observations. I have arranged the data in long format (it contains 100 columns indicating different variables and identifiers). In mlogit I tried the following command--- *mldata<- mlogit.data(mydata, shape = "long", alt.var = "Alt_name", choice = "Choice_binary", id.var = "IND")* It is giving me the following error message- Error in 1:nchid : result would be too long a vector Could you please help me with this? I don't think it is too big a data 100 ROWS*13932 columns. I faced no issue in Excel. I am stuck due to this issue. Thanks in...
2020 Oct 01
0
Help with the Error Message in R "Error in 1:nchid : result would be too long a vector"
...> >> > >> 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, > >> > >> Rui Barradas > >> > >> > >> ?s 16:15 de 22/09/20, David Winsemius escreveu: > >>> You were told two things...