I'm fitting a logistic model after using both multiple imputation and covariate balancing. With standard logistic regression, the basic structure of my code (which works properly) looks something like this:
weighted_pool_model <- with(weighted_pool_data,
glm(outcome ~ mainpredictor + abunchofcovariates,
family = "binomial"))
weighted_pool_results <- pool(weighted_pool_model)
summary(weighted_pool_results, conf.int = TRUE)
I've been trying to see if this is compatible with logistf
which makes Firth's penalized logit fairly easy (at least outside of the context of MI and CBPS). The first step seems to work:
weighted_pool_firth <- with(weighted_pool_data,
logistf(outcome ~ mainpredictor + abunchofcovariates))
But then the pooling throws an error:
weighted_pool_results <- pool(weighted_pool_firth)
Error: No tidy method for objects of class logistf
In addition: Warning message:
In get.dfcom(object, dfcom) : Infinite sample size assumed.
Any ideas for problem solving or alternative workarounds would be appreciated!
library
calls at the beginning of the code blocks. You might also specify what is meant by “pooling”, since it’s not really a proper statistical or mathematical term. Do you mean to take the mean or some sort of precision weighted mean?