plot.ps: Plotting of the results of a call to the ps function

Description Usage Arguments Value References See Also

View source: R/ps.R

Description

This functions is methods for class ps objects.

Usage

1
2
3
  ## S3 method for class 'ps'
plot(x, xlab_name = c("log(1/g_1)", "log(1/g_0)", "log(1/g_1)[A=1]",
  "log(1/g_0)[A=0]"), cols = c("red", "green", "blue", "orange"),...)

Arguments

x

an object of class ps for plot functions.

xlab_name

the name of x-axis for four plots.

cols

the color of curves.

...

currently ignored.

Value

ps_plots

the 2 x 2 density plots (A, B, C, D) of the log of the estimated weights where A refers to treatment A=1 in subgroups with A=1, B refers to treatment A=0 in subgroups with A=0, C refers to treatment A=1 for all subjects and D refers to treatment A=0 for all subjects

References

1. Bahamyirou A, Blais L, Forget A, Schnitzer ME. (2019), Understanding and diagnosing the potential for bias when using machine learning methods with doubly robust causal estimators. Statistical methods in medical research 28(6):1637-50.

See Also

ps summary.ps


Yan2020729/bdt1 documentation built on March 24, 2021, 8:58 p.m.