emily
emily

Reputation: 11

Using the 'performance' package in R, Error: Variable 'Component' is not in your data frame

The output for the "check_model()" function in the performance package is providing the error "Variable 'Component' is not in your data frame " . I am using a glm.nb model and some of my other models do not give this error. Has anyone ever experienced this issue? How did you fix it?

glm1 <- glm.nb(Total_bySp ~ Dist_WaterM + OpenWaterLC + Percent_Deciduous + 
  PastureLC + Temp_high , data=Haem)
summary(glm1)

where all variables are numbers

why does this error occur?

Upvotes: 1

Views: 844

Answers (1)

Gorka
Gorka

Reputation: 4043

According to one of the authors, "It's not a bug, just a misleading warning/message".

It was fixed back in January. You can install the dev version with:

install.packages("easystats")
easystats::install_latest(force = TRUE)

See: https://github.com/easystats/performance/issues/545

Upvotes: 1

Related Questions