0

I am new to R statistics, I am trying to do a choice experiment model with 2 alternatives and one opt-out option. the alternatives have 6 attributes with 2 levels each. I used effect coding to code the variables with 869 observations. I tried to do the nested logit model using

Multinomial logit regression

library(mlogit) library(dfidx)

mydata <- mlogit.data(mydata, choice = "choice", shape = "wide")

mymodel <- mlogit(choice ~ 1| nip + vir + fib + prt + atc + apc, mydata, reflevel = 3, nests = list(nest1 = c(1, 2), nest2 = 3))

I got the above error. please check image of the head data using this path (C:\Users\natai\Pictures\2023-04-01 (3).png). Am sorry, I was not able to figure out how to paste the sample data like it ought to be.

I checked the correlation between the independent variables and the values were all below o.5 which signifies weak correlation. Please can any help me with a practical and easy way to debug this error.

Nattie
  • 1
  • 1

0 Answers0