parameters icon indicating copy to clipboard operation
parameters copied to clipboard

vcov argument for pooled mice objects with parameters()

Open ereinbergs opened this issue 7 months ago • 2 comments

it would be great if parameters() could have the vcov argument for pooled mice objects.

glm_mi <- with(
  dt_imp,
  glm(y ~ x, family = "binomial")
)

pooled <- pool(glm_mi)
parameters(pooled, exponentiate = TRUE, vcov = "HC4m")

gives:

Following arguments are not supported in model_parameters() for models of class mipo and will be ignored: "vcov". In case you obtain expected results, please run model_parameters() again without specifying the above mentioned arguments. ...

alternatively, is there a way to convert the pooled mice object to a type that parameters() will accept the vcov argument with?

ereinbergs avatar Jun 05 '25 15:06 ereinbergs

You could use pool_parameters() on a list of model objects, and then pass the vcov argument

strengejacke avatar Jun 05 '25 16:06 strengejacke

ah thank you! i wasn't aware of that function.

ereinbergs avatar Jun 05 '25 16:06 ereinbergs