bal.tab处理mimid对象时thresholds参数不生效的问题求助
问题:bal.tab对mimid对象的thresholds参数不生效(4.5.5版本)
我正在评估经mice插补、MatchThem加权后的连续治疗数据集的平衡性。使用版本4.5.5的bal.tab时,发现thresholds参数对mimid对象不生效(该功能自4.3版本添加),但在love.plot中该参数可正常显示阈值。(数据为私有无法提供)
代码示例
weights_mice_cont <- weightthem( formula = as.formula(paste("dose ~ ", paste(names(covs_cont), collapse="+"), paste("+ moh_treat_prev_year"))), datasets = test_mice_cont, approach = "within", method = "glm", density = "kernel") summary(weights_mice_cont) bal.tab(weights_mice_cont, thresholds = c(cor = 0.1)) love.plot(weights_mice_cont, binary = "std", thresholds = 0.05)
输出情况
- bal.tab输出:未按照设定的
cor = 0.1阈值标记不平衡协变量 - love.plot输出:正常显示
0.05的阈值线
恳请各位提供帮助。
内容的提问来源于stack exchange,提问作者Y.Silverman
相关产品推荐
相关产品推荐

