I am trying to run a multinomial regression on my dataset to see the impact of Channel and Touchpoint on Choice with Price and Device as controls, but unfortunately receive an error mesage.
The first few lines of my data.frame after already running mlogit.data on it look like this:
ORDER_ID PRODUCT_ID DEVICE PRICE TOUCHPOINT CHANNEL 1_or_2 CHOICE chid alt
123 566 laptop 99 paid offline 1 TRUE 33 1
123 566 laptop 99 paid offline 1 FALSE 33 2
123 534 phone 56 paid offline 2 FALSE 45 1
123 534 phone 56 paid offline 2 TRUE 45 2
124 876 laptop 85 unpaid online 1 TRUE 111 1
124 876 laptop 85 unpaid online 1 FALSE 111 2
The code I am trying to run is:
Choice_mlg <- mlogit(Choice_A_or_B ~ 1 | Channel + Touchpoint + Price + Device,
data = ml_choice_1, reflevel = 1, na.action = na.exclude)
What I then receive is the following error message:
Error in solve.default(H, g[!fixed]) : Lapack routine dgesv: system is exactly singular: U[6,6] = 0
Could anyone help on what I am doing wrong here?
Thank you and best