-
-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
I think that the latest version of insight
breaks marginaleffects
tests because it no longer retrieves weights from survey
objects.
This appears to be a bug introduced recently. Versions of insight
as recent as 6 commits ago behave as expected.
library(insight)
library(survey)
packageVersion("survey")
[1] '4.4.8'
packageVersion("insight")
[1] '1.4.2.8'
data("fpc", package = "survey")
svyd <- survey::svydesign(
weights = ~weight,
ids = ~psuid,
strata = ~stratid,
fpc = ~Nh,
variables = ~ x + nh,
data = fpc,
nest = TRUE
)
mod <- survey::svyglm(x ~ nh, design = svyd)
find_weights(mod)
[1] "weight"
get_weights(mod)
NULL
Metadata
Metadata
Assignees
Labels
No labels