Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels

Convert participation variable to a factor

data$Participation <- factor(data$Participation, ordered = TRUE)

Convert predictor variables to factors

data$Respondents_involvement_in_carnivore_conservation_decisionmaking <- factor(data$Respondents_involvement_in_carnivore_conservation_decisionmaking)
data$Participation_carnivore_conservation_activities <- factor(data$Participation_carnivore_conservation_activities)
model <- clm(Participation ~ Respondents_involvement_in_carnivore_conservation_decisionmaking +

  •              Participation_carnivore_conservation_activities, 
    
  •          data = data)
    

Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.