Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
具有love plot R的多阈值线_R_Cobalt - Fatal编程技术网

具有love plot R的多阈值线

具有love plot R的多阈值线,r,cobalt,R,Cobalt,有没有办法在下面的love.plot中添加多个阈值行?此外,我似乎不知道如何禁止显示NA变量 love.plot(bal.tab(gac_status ~ covs, data = new_data), binary = "std", sample.names = "Difference", title = "Covariate Balance \n Mean Treated minus

有没有办法在下面的
love.plot
中添加多个阈值行?此外,我似乎不知道如何禁止显示
NA
变量

love.plot(bal.tab(gac_status ~ covs, data = new_data),
          binary = "std",
          sample.names = "Difference",
          title = "Covariate Balance \n Mean Treated minus Mean Control",
          position = "none",
          stars = "raw",
          drop.missing = TRUE,
          thresholds = c(m = 0.1)) +
         labs(caption = "* indicates variables for which the displayed value is the raw (unstandardized) difference in means.")
我尝试了thresholds=c(m=c(0.1,0.05)),但没有成功


这是一个ggplot对象,因此
+geom_vline(xintercept=…)
可以工作