Closed joshuafayallen closed 3 months ago
Thanks a lot for the report!
Using the development versions of both insight
and modelsummary
should return a more informative error. It looks like the problem had to do with missing values. You can pass a vector instead of the name of the variable to the cluster
argument:
remotes::install_github("easystats/insight")
remotes::install_github("vincentarelbundock/modelsummary")
library(palmerpenguins)
library(modelsummary)
test_mod = lm(body_mass_g ~ bill_length_mm, data = penguins)
modelsummary(test_mod, vcov = 'bootstrap', cluster = penguins$species)
(Intercept) | 362.307 |
(1621.185) | |
bill_length_mm | 87.415 |
(41.620) | |
Num.Obs. | 342 |
R2 | 0.354 |
R2 Adj. | 0.352 |
AIC | 5400.0 |
BIC | 5411.5 |
Log.Lik. | -2696.987 |
RMSE | 643.54 |
Std.Errors | Bootstrap |
Got it thank you so much!
Hi Vincent, I keep getting this error from when using
vcov
to correct the standard errors and I keep getting this error when trying to bootstrap the standard errors.However, it seems to work with other arguments
Created on 2024-04-05 with reprex v2.1.0
Created on 2024-04-05 with reprex v2.1.0
Here is the `sessioninfo:
Created on 2024-04-05 with reprex v2.1.0