easystats / insight

:crystal_ball: Easy access to model information for various model objects
https://easystats.github.io/insight/
GNU General Public License v3.0
380 stars 38 forks source link

get_varcov_sandwich: Better error message #865

Closed vincentarelbundock closed 2 months ago

vincentarelbundock commented 2 months ago

Very minor PR to improve the error message in get_varcov()

strengejacke commented 2 months ago

Do you have an example that will throw this error?

vincentarelbundock commented 2 months ago
library(palmerpenguins)
mod = lm(body_mass_g ~ flipper_length_mm, data = penguins)
get_varcov(mod, vcov = "vcovBS", vcov_args = list(cluster = "species"))