Hi there!

I am currently working on a discrete choice experiment. I have collected all my data and formatted/organized it in excel (see screenshot of my dataset in Rstudio).

I am currently trying to carry out coefficient estimation via the mlogit package. However.. I am not really an R/Rstudio guru so I am having trouble using the right coding.

I have already loaded my excel file into the Rstudio Library, loaded the required packages and formed an mlogit.data set. However.. I am most likely not doing it right as I now keep getting errors. I have also attached a screenshot of the code I entered into Rstudio.

My question now is; looking at my data in excel, have I entered the right code into the mlogit.data function. And what do I enter into the mlogit function. Really hoping someone has experience with this mlogit package and could help me.

Thanks in advance!