please am very new in r statistics so any help will be appreciated.
I am trying to analyse a discrete choice data with two alternatives and an opt out option using the nested logit model in R. I did this; data1 <- mlogit.data(data=ose,shape="long", choice="choice",alt.var="alt",id.var="id", alt.levels = c("A", "B", "C"), drop.index = FALSE, as.factor = TRUE)
then tried to fit the model with nl <- mlogit(choice ~ micro + none + yes + no + flow + high + plow + moderate + brown + white + price1 + price2 | 0, data1, nests = list (opt_out = c('C'), opt_in = c('A', 'B')), un.nest.el = TRUE)
and it gave the error: Error in solve.default(H, g[!fixed]) : Lapack routine dgesv: system is exactly singular: U[6,6] = 0
I have looked at it over and over but can't seem to be able to deduce the problem. Would appreciate any help. Thanks in advance. Please, how to I post the head data from my console?