Number of thresholds to use in hybrid ordered model with no data in one level
Posted: 20 Aug 2020, 15:56
Hi, I am trying to estimate a hybrid model with ordered indicators. I have succesfully run this type of model with other datasets previously succesfully, but I have encounter a problem with the current dataset I am using.
I have a variable with the following levels
levels=c(1,2,3,4,5),labels=c("Strongly Disagree","Disagree","Neither","Agree","Strongly Agree")))
I have tried running a ordered logit with 4 taus but I am getting an error.
ol_settings1 = list(outcomeOrdered=concerned,
V=zeta_IND_concerned*LV_IND,
tau=c(tau_IND_concerned_1,
tau_IND_concerned_2,
tau_IND_concerned_3,
tau_IND_concerned_4),
rows=(task==1),
componentName="indic_IND_concerned")
The problem is that for the level "2" I have no data, so basically it means that there are less "treshold coefficients " than 4. Actually if I recode this variable and change the "3"<-2, "4"<-3..so on. and run the model with 3 Taus, the model works perfectly!
So, I have managed to twist the data to run the model but I am not sure it is correct, so I would like to know if its possible to code the "ol_settigs" with 4 steps even though there is no data for one level?
I have a variable with the following levels
levels=c(1,2,3,4,5),labels=c("Strongly Disagree","Disagree","Neither","Agree","Strongly Agree")))
I have tried running a ordered logit with 4 taus but I am getting an error.
ol_settings1 = list(outcomeOrdered=concerned,
V=zeta_IND_concerned*LV_IND,
tau=c(tau_IND_concerned_1,
tau_IND_concerned_2,
tau_IND_concerned_3,
tau_IND_concerned_4),
rows=(task==1),
componentName="indic_IND_concerned")
The problem is that for the level "2" I have no data, so basically it means that there are less "treshold coefficients " than 4. Actually if I recode this variable and change the "3"<-2, "4"<-3..so on. and run the model with 3 Taus, the model works perfectly!
So, I have managed to twist the data to run the model but I am not sure it is correct, so I would like to know if its possible to code the "ol_settigs" with 4 steps even though there is no data for one level?